6992685b86
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
22 lines
331 B
C#
22 lines
331 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 class TInterface
|
|
{
|
|
}
|
|
|
|
public interface MyInterface
|
|
{
|
|
void DoStuff<TInput> (TInput stuff) where TInput: TInterface;
|
|
} |