Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'attribute modifier' is not a valid attribute ___location for this declaration. Valid attribute locations for this declaration are 'locations'. All attributes in this block will be ignored.
The compiler found an attribute modifier in an invalid ___location. See Attribute Targets for more information.
The following sample generates CS0657:
// CS0657.cs
// compile with: /target:library
public class TestAttribute : System.Attribute {}
[return: Test] // CS0657 return not valid on a class
class Class1 {}