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

gtest-459.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 297915e3007e6176f3da2f4cc37ec919a26cb4bd (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
using System;

namespace GenericTest
{
	public class OuterGeneric<T>
	{
		public class InnerGeneric<U>
		{
			public static string GetTypeNames ()
			{
				return typeof (T).ToString () + " " + typeof (U).ToString ();
			}
		}
	}

	class Program
	{
		public static int Main ()
		{
			string typeNames = OuterGeneric<int>.InnerGeneric<long>.GetTypeNames ();
			Console.WriteLine (typeNames);
			return 0;
		}
	}
}