class Foo<T> where T : Foo<T> { }@H_502_4@ 你可以使用任何你喜欢的技术;简单的“新MyClass …”,使用反射,黑客MSIL,无论如何.
你可以使用任何你喜欢的技术;简单的“新MyClass …”,使用反射,黑客MSIL,无论如何.
static class Program { static void Main() { Foo<Bar> foo = new Foo<Bar>(); } } class Foo<T> where T : Foo<T> {} class Bar : Foo<Bar> {}@H_502_4@