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

gtest-041.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d30a2d9a3ee10fce9ed1c0151771af2e0aa7a2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// We may use type parameters as `params' type.

class Stack<T>
{
	public void Hello (int a, params T[] args)
	{ }
}

class X
{
	public static void Main ()
	{
		Stack<string> stack = new Stack<string> ();
		stack.Hello (1, "Hello", "World");
	}
}