-using System;\r
-using System.Reflection;\r
-\r
-public class TestAttribute : Attribute\r
-{\r
- public Type type;\r
-\r
- public TestAttribute(Type type)\r
- {\r
- this.type = type;\r
- }\r
-}\r
-\r
-class C<T>\r
-{\r
- [Test(typeof(C<string>))]\r
- public static void Foo()\r
- {\r
- }\r
-}\r
-\r
-public class C\r
-{\r
- public static int Main ()\r
- {\r
- MethodInfo mi = typeof (C<>).GetMethod ("Foo");\r
- object[] a = mi.GetCustomAttributes (false);\r
- if (((TestAttribute)a[0]).type.ToString() != "C`1[System.String]")\r
- return 1;\r
-\r
- Console.WriteLine("OK");\r
- return 0;\r
- }\r
+using System;
+using System.Reflection;
+
+public class TestAttribute : Attribute
+{
+ public Type type;
+
+ public TestAttribute(Type type)
+ {
+ this.type = type;
+ }
+}
+
+class C<T>
+{
+ [Test(typeof(C<string>))]
+ public static void Foo()
+ {
+ }
+}
+
+public class C
+{
+ public static int Main ()
+ {
+ MethodInfo mi = typeof (C<>).GetMethod ("Foo");
+ object[] a = mi.GetCustomAttributes (false);
+ if (((TestAttribute)a[0]).type.ToString() != "C`1[System.String]")
+ return 1;
+
+ Console.WriteLine("OK");
+ return 0;
+ }
}
\ No newline at end of file