Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-21.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd125497bbbc9696779eb076b97397bea096a5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;

	}

}