Alternative to Activator.CreateInstance






2.88/5 (3 votes)
And why don't you just do this?public static T Create() where T : class, new(){ return new T();}
And why don't you just do this?
public static T Create<T>() where T : class, new()
{
return new T();
}