4 using System.Diagnostics;
7 public class TestAttribute : Attribute {}
9 [Conditional("RELEASE")]
10 public class TestNotAttribute : Attribute {}
13 [Conditional("DEBUG")]
15 public class TestMultiAttribute : Attribute {}
17 // TestAttribute is included
21 // TestNotAttribute is not included
30 public class TestClass
32 public static int Main ()
34 if (Attribute.GetCustomAttributes (typeof (Class1)).Length != 1)
37 if (Attribute.GetCustomAttributes (typeof (Class2)).Length != 0)
40 if (Attribute.GetCustomAttributes (typeof (Class3)).Length != 1)
43 Console.WriteLine ("OK");