Aviso do compilador (nível 1) CS3015

'method signature' não tem nenhum construtor acessível que use somente tipos em conformidade com CLS

Para estar em conformidade com o CLS (Common Language Specification), a lista de argumentos de uma classe de atributos não pode conter uma matriz. Para obter mais informações sobre conformidade com CLS, consulte Independência de linguagem e componentes independentes da linguagem.

Exemplo

O exemplo a seguir gera C3015.

// CS3015.cs  
// compile with: /target:library  
using System;  
  
[assembly:CLSCompliant(true)]  
public class MyAttribute : Attribute  
{  
   public MyAttribute(int[] ai) {}   // CS3015  
   // try the following line instead  
   // public MyAttribute(int ai) {}  
}