2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1533.cs
blob41809e44de88fcd97940a11764d7d79748d6a6cf
1 // CS1533: Invoke cannot be called directly on a delegate
2 // Line : 11
3 // Compiler options: -langversion:ISO-1
5 public class TestClass
7 delegate void OneDelegate (int i);
9 static void Main()
11 OneDelegate d = new OneDelegate (TestMethod);
12 d.Invoke (1);
14 public static void TestMethod (int i)