Reputation: 21302
Example:
public static System.Object CreateInstance ( System.Type t ) { // return t.<CreateNewObject>; }
Upvotes: 1
Views: 135
Reputation: 86808
You want Activator.CreateInstance(t)
Activator.CreateInstance(t)
Upvotes: 5