2 using System.Reflection;
4 public class TestAttribute : Attribute
8 public TestAttribute(Type type)
16 [Test(typeof(C<string>))]
17 public static void Foo()
24 public static int Main ()
26 MethodInfo mi = typeof (C<>).GetMethod ("Foo");
27 object[] a = mi.GetCustomAttributes (false);
28 if (((TestAttribute)a[0]).type.ToString() != "C`1[System.String]")
31 Console.WriteLine("OK");