2 using System.Reflection;
4 [AttributeUsage (AttributeTargets.All)]
5 public class DocAttribute : Attribute
7 public DocAttribute () {}
8 public DocAttribute (string s) {}
11 public delegate void Func<[Doc] TArg, [Doc ("ret!")] TRet> ();
15 public static int Main ()
17 Type[] targs = typeof (Func<,>).GetGenericArguments ();
18 if (targs[0].GetCustomAttributes (false).Length != 1)
21 if (targs[1].GetCustomAttributes (false).Length != 1)
24 Console.WriteLine ("OK");