2 using System.Runtime.InteropServices;
3 using System.Runtime.CompilerServices;
4 using System.ComponentModel;
6 //TODO add to a typeref
7 //TODO is Bla<D> a memberref?
8 //TODO to an entry in security table
9 //TODO add to a standalonesig
10 //TODO add to a moduleref
11 //TODO add to a typespec
12 //TODO add to a assemblyref
14 //TODO add to a exportedtype
15 //TODO add to a manifesresource
16 //TODO add to an interfaceimpl
19 [assembly: Generic (14)]
20 [module: Generic (80)]
23 [AttributeUsage(AttributeTargets.All)]
24 public sealed class GenericAttribute : Attribute
26 public GenericAttribute () {}
27 public GenericAttribute (int x) {}
30 public interface IFace {}
33 public class Foo : IFace
39 public void Bla<D> () {}
44 public delegate int Del();
52 int Foo ([Generic (50)] int d) { return d; }
55 public int Bla { get; set; }
61 public static void Main ()