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

test-680.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 946c0f873295e5151171405df967f99719cd25a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;

namespace AsStringProblem
{
	class MainClass
	{
		public static void Main ()
		{
			object o = "Hello World";
			Console.WriteLine (o as string + "blah");
			Console.WriteLine (o is string + "blah");
			Console.WriteLine ((o as string) + "blah");
			Console.WriteLine ("blah" + o as string);
		}
	}
}