Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0619-35.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c2e590e0e5837f5431c4a6def00b17b20d607db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0619.cs: 'A.MyEvent' is obsolete: 'Do not use it'
// Line: 11

public delegate void MyDelegate();

class A {
    [System.Obsolete("Do not use it", true)]    
    event MyDelegate MyEvent;
    
    public A () {
        MyEvent += new MyDelegate(f);
    }
    
    void f () {}
}