c042cd0c52
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
22 lines
335 B
C#
22 lines
335 B
C#
public class BaseClass<TSource>
|
|
{
|
|
public void DoStuff<TInput> (TInput stuff) where TInput: TSource
|
|
{
|
|
}
|
|
}
|
|
|
|
public class MyClass: BaseClass<TInterface>, MyInterface
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
}
|
|
|
|
public interface TInterface
|
|
{
|
|
}
|
|
|
|
public interface MyInterface
|
|
{
|
|
void DoStuff<TInput> (TInput stuff) where TInput: TInterface;
|
|
} |