17 lines
175 B
C#
17 lines
175 B
C#
|
// Very simple example of a generic method.
|
||
|
|
||
|
class Stack<S>
|
||
|
{
|
||
|
public static void Hello<T,U> (S s, T t, U u)
|
||
|
{
|
||
|
U v = u;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class X
|
||
|
{
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|