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