Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

36 lines
433 B
C#

using System;
public class Blah {
public class Foo {
public Foo ()
{
Console.WriteLine ("Inside the Foo constructor now");
}
public int Bar (int i, int j)
{
Console.WriteLine ("The Bar method");
return i+j;
}
}
public static int Main ()
{
Foo f = new Foo ();
int j = f.Bar (2, 3);
Console.WriteLine ("Blah.Foo.Bar returned " + j);
if (j == 5)
return 0;
else
return 1;
}
}