-using System;\r
-\r
-public delegate int D ();\r
-\r
-public abstract class A\r
-{\r
- protected abstract event D Event;\r
-}\r
-\r
-public class B : A\r
-{\r
- protected override event D Event;\r
-\r
- protected int Run ()\r
- {\r
- return Event ();\r
- }\r
-}\r
-\r
-public class C : B\r
-{\r
- int Test (int i)\r
- {\r
- Action a = () => base.Event += () => i;\r
- a ();\r
- return Run ();\r
- }\r
-\r
- public static int Main ()\r
- {\r
- if (new C ().Test (9) != 9)\r
- return 1;\r
-\r
- return 0;\r
- }\r
+using System;
+
+public delegate int D ();
+
+public abstract class A
+{
+ protected abstract event D Event;
+}
+
+public class B : A
+{
+ protected override event D Event;
+
+ protected int Run ()
+ {
+ return Event ();
+ }
+}
+
+public class C : B
+{
+ int Test (int i)
+ {
+ Action a = () => base.Event += () => i;
+ a ();
+ return Run ();
+ }
+
+ public static int Main ()
+ {
+ if (new C ().Test (9) != 9)
+ return 1;
+
+ return 0;
+ }
}
\ No newline at end of file