needs gmcs
[mono.git] / mono / tests / metadata-verifier / assembly-with-cattr.cs
1 using System;
2 using System.Runtime.InteropServices;
3 using System.Runtime.CompilerServices;
4 using System.ComponentModel;
5
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
13 //TODO add to a file
14 //TODO add to a exportedtype
15 //TODO add to a manifesresource
16 //TODO add to an interfaceimpl
17
18
19 [assembly: Generic (14)]
20 [module: Generic (80)]
21
22
23 [AttributeUsage(AttributeTargets.All)]
24 public sealed class GenericAttribute : Attribute
25 {
26         public GenericAttribute () {}
27         public GenericAttribute (int x) {}
28 }
29
30 public interface IFace {}
31
32
33 public class Foo : IFace
34 {}
35
36 public class Foo<T> 
37 {
38         [Generic (70)]
39         public void Bla<D> () {}
40
41 }
42
43
44 public delegate int Del();
45
46 [Generic (30)]
47 public class Class
48 {
49         [Generic (20)]
50         int field;
51
52         int Foo ([Generic (50)] int d) { return d; }
53
54         [Generic (100)]
55         public int Bla { get; set; }
56
57         [Generic (110)]
58         public event Del Zzz;
59
60         [Generic (10)]
61         public static void Main ()
62         {
63         
64         }
65 }