Answers for "create an object from generic class:"

C#
1

create new object from generic c#

return (T)Activator.CreateInstance(typeof(T), new object[] { param });
Posted by: Guest on March-23-2020

Code answers related to "create an object from generic class:"

C# Answers by Framework

Browse Popular Code Answers by Language