a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
247 B
C#
17 lines
247 B
C#
// 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");
|
|
}
|
|
}
|