23 lines
262 B
C#
Raw Normal View History

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);
}
}