Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A
- {
- public delegate void D();
- public event D E;
- public void DoSomething() { /* ... */ }
- public A()
- {
- E += DoSomething;
- }
- }
- public class B
- {
- public static void Main(string[] args)
- {
- A a = new A();
- a.E(); // error
- }
- }
Add Comment
Please, Sign In to add comment