create new object from generic c#

C#
return (T)Activator.CreateInstance(typeof(T), new object[] { param });
Source

Also in C#: