a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
213 B
C#
18 lines
213 B
C#
// 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 ()
|
|
{
|
|
}
|
|
}
|