a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
283 B
C#
15 lines
283 B
C#
// CS0619-35: `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 () {}
|
|
} |