How to Pass Parameters to Activator.CreateInstance()

Yes.

(T)Activator.CreateInstance(typeof(T), param1, param2);

Leave a Comment