First of all, your code that you published had a ton of errors: This compiles:
public class Test
{
public Test(string a)
{
//todo..
}
}
public class Test2
{
public Test2(string a, int b)
{
//todo..
}
public Test2();
}
public class Generic<T> where T : class, new()
{
public bool Save(T t)
{
//todo..
return true;
}
}
This will now compile:
var result = new Generic<test2>().Save(new Test2("dfd", 2));</test2>