Original Post
Sup everyone! I'm not exactly friend with the visual studio .net compiler ! :( I don't know why, but the compiler just doesn't want to figure out the type parameters for me argh! Ok, so here it goes: So, why can't the compiler figure out this: test(new TestClass()); I mean, common! I have given it everything it needs to know? The parameters cannot be inferred blahblah... I have to do it this way: test(new TestClass()); I know I can do like this: But I really need to know the real input of "U" C ya laters!
interface TestInterface<V, Z> {}
class TestClass : TestInterface<String, int> {}
public void test<U,V,Z>(U t)
where U: TestInterface<V,Z>
{
}
public void test<V,Z>(TestInterface<V,Z> t)
{
}