cs-11.cs 303 B

1234567891011121314151617181920
  1. // cs-11.cs : Delegate creation expression takes only one argument
  2. // Line : 17
  3. public class Blah {
  4. public delegate int MyDelegate (int i, int j);
  5. public int Foo (int i, int j)
  6. {
  7. return i+j;
  8. }
  9. public static void Main ()
  10. {
  11. Blah i = new Blah ();
  12. MyDelegate del = new MyDelegate ();
  13. }
  14. }