Error del compilador CS1614Compiler Error CS1614

"name" es ambiguo entre "name" y "nameAttribute"; use "@name" o "nameAttribute".'name' is ambiguous between 'name' and 'nameAttribute'; use either '@name' or 'nameAttribute'.

El compilador ha encontrado una especificación de atributo ambigua.The compiler has encountered an ambiguous attribute specification.

Para mayor comodidad, el compilador de C# le permite especificar ExampleAttribute solo como [Example].For convenience, the C# compiler allows you to specify ExampleAttribute as just [Example]. En cambio, se genera una ambigüedad si una clase de atributo denominada Example existe junto con ExampleAttribute, porque el compilador no puede indicar si [Example] hace referencia al atributo Example o al atributo ExampleAttribute.However, ambiguity arises if an attribute class named Example exists along with ExampleAttribute, because the compiler cannot tell if [Example] refers to the Example attribute or the ExampleAttribute attribute. Como aclaración, use [@Example] para el atributo Example y [ExampleAttribute] para ExampleAttribute.To clarify, use [@Example] for the Example attribute and [ExampleAttribute] for ExampleAttribute.

En el ejemplo siguiente se genera la advertencia CS1614:The following sample generates CS1614:

// CS1614.cs  
using System;  
  
// Both of the following classes are valid attributes with valid  
// names (MySpecial and MySpecialAttribute). However, because the lookup  
// rules for attributes involves auto-appending the 'Attribute' suffix  
// to the identifier, these two attributes become ambiguous; that is,  
// if you specify MySpecial, the compiler can't tell if you want  
// MySpecial or MySpecialAttribute.  
  
public class MySpecial : Attribute {  
   public MySpecial() {}  
}  
  
public class MySpecialAttribute : Attribute {  
   public MySpecialAttribute() {}  
}  
  
class MakeAWarning {  
   [MySpecial()] // CS1614  
                 // Ambiguous: MySpecial or MySpecialAttribute?  
   public static void Main() {  
   }  
  
   [@MySpecial()] // This isn't ambiguous, it binds to the first attribute above.  
   public static void NoWarning() {  
   }  
  
   [MySpecialAttribute()] // This isn't ambiguous, it binds to the second attribute above.  
   public static void NoWarning2() {  
   }  
  
   [@MySpecialAttribute()] // This is also legal.  
   public static void NoWarning3() {  
   }  
}