2 using System.Reflection;
3 using System.Runtime.InteropServices;
6 public partial class Test
10 [AttributeUsage(AttributeTargets.Struct)]
11 public partial class TestAttribute: Attribute
15 [AttributeUsage(AttributeTargets.All)]
16 public partial class Test2Attribute: Attribute
21 public struct Test_2 {
28 if (Attribute.GetCustomAttributes (typeof (Test)).Length != 1)
31 if (Attribute.GetCustomAttributes (typeof (Test_2)).Length != 1)
34 Console.WriteLine ("OK");