18 lines
213 B
C#
Raw Normal View History

// A generic method may also use the type parameters
// from its enclosing type.
class Stack<S>
{
public static void Hello<T> (S s, T t)
{ }
}
class X
{
Stack<int> stack;
public static void Main ()
{
}
}