c# create generic object code example Example: create new object from generic c# return (T)Activator.CreateInstance(typeof(T), new object[] { param });