23 lines
262 B
C#
23 lines
262 B
C#
|
public class Stack
|
||
|
{
|
||
|
public Stack ()
|
||
|
{ }
|
||
|
|
||
|
public void Hello<T> (T t)
|
||
|
{ }
|
||
|
}
|
||
|
|
||
|
public class X
|
||
|
{
|
||
|
public static void Foo (Stack stack)
|
||
|
{
|
||
|
stack.Hello<string> ("Hello World");
|
||
|
}
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
Stack stack = new Stack ();
|
||
|
Foo (stack);
|
||
|
}
|
||
|
}
|