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 ()
|
||
|
{
|
||
|
}
|
||
|
}
|