-// cs0123.cs: Method 'MainClass.Delegate()' does not match delegate 'void TestDelegate()'\r
-// Line: 12\r
-\r
-delegate void TestDelegate();\r
-\r
-public class MainClass {\r
- public static int Delegate() {\r
- return 0;\r
- }\r
-\r
- public static void Main() {\r
- TestDelegate delegateInstance = new TestDelegate (Delegate);\r
- }\r
-}\r
+// CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters
+// Line: 12
+
+delegate int TestDelegate(bool b);
+
+public class MainClass {
+ public static int Delegate() {
+ return 0;
+ }
+
+ public static void Main() {
+ TestDelegate delegateInstance = new TestDelegate (Delegate);
+ }
+}
+