2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-optional-05.cs
blob262acaa1ba41a1b771065eb76a3e630348618b47
1 using System;
3 public class Blah
5 public delegate int MyDelegate (int i, int j = 7);
7 public int Foo (int i, int j)
9 return i+j;
12 public static int Main ()
14 Blah i = new Blah ();
15 MyDelegate del = new MyDelegate (i.Foo);
17 int number = del (2);
19 Console.WriteLine (number);
20 if (number != 9)
21 return 1;
23 return 0;