1 // Compiler options: -warn:4 -warnaserror
9 public static void Main ()
11 Parent pr
= new Child();
12 ((Child
)pr
).OnExample();
16 public abstract class Parent
18 public delegate void ExampleHandler();
19 public abstract event ExampleHandler Example
;
22 public class Child
: Parent
24 public override event ExampleHandler Example
;
25 public void OnExample()
27 if (Example
!= null) Example();