<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0592</ErrorName>
  <Examples>
    <string>// cs0592-2.cs : Attribute 'MyAttribute' is not valid on this declaration type. It is valid on 'interface' declarations only.
// Line : 8

using System;

public interface ITest
{
	[MyAttribute]
	void Method();
}

[AttributeUsage (AttributeTargets.Interface)]
public class MyAttributeAttribute : Attribute
{
}

public class Foo {

        public static void Main ()
        {
        }
}


</string>
    <string>// cs0592 :  Attribute 'IndexerName' is not valid on this declaration type. It is valid on 'property' declarations only.
// Line : 6

using System.Runtime.CompilerServices;

[IndexerName("XXX")]
class A {
        public static void Main () { }
        
}
</string>
    <string>// cs0592-4.cs: Attribute 'TestAttribute' is not valid on this declaration type. It is valid on 'constructor' declarations only.
// Line: 5

using System;
[assembly:TestAttribute ()]

[AttributeUsage(AttributeTargets.Constructor)]
public class TestAttribute: Attribute {
}</string>
    <string>// cs0592-5.cs: Attribute 'TestAttribute' is not valid on this declaration type. It is valid on 'constructor' declarations only.
// Line: 6

using System;

[TestAttribute ()]
enum E {
}

[AttributeUsage(AttributeTargets.Constructor)]
public class TestAttribute: Attribute {
}</string>
    <string>// cs0592-6.cs: Attribute 'TestAttribute' is not valid on this declaration type. It is valid on 'constructor' declarations only.
// Line: 6

using System;

[TestAttribute ()]
delegate void D ();

[AttributeUsage(AttributeTargets.Constructor)]
public class TestAttribute: Attribute {
}</string>
    <string>// cs0592.cs : Attribute 'Simple' is not valid on this declaration type. It is valid on 'constructor' declarations only.
// Line : 22

using System;

[AttributeUsage (AttributeTargets.Constructor, AllowMultiple = true)]
	public class SimpleAttribute : Attribute {

		string name = null;

		public string MyNamedArg;
		
		public SimpleAttribute (string name)
		{
			this.name = name;
		}
		
		
	}

[Simple ("Dummy", MyNamedArg = "Dude!")]
	public class Blah {

		public static void Main ()
		{
		}
	}
					   
	
</string>
  </Examples>
</ErrorDocumentation>