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

test-370.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73f1ff566fe27b204c409de045c1a9312c17453b (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
36
37
using System;

namespace Test
{
	public class Application
	{
		private static int ParseType(string inType)
		{
			switch (inType)
			{
				case "headless":
					return 0;

				case "headed":
				default:
					return 1;

				case "wedge":
					return 2;

				case "hi":
					return 3;

				case "she":
					return 4;

				case "sha2":
					return 5;
			}
		}

		public static void Main()
		{
			int result = ParseType("foo");
		}
	}
}