c# create instance from type variable code example Example: c# create instance from type T instance = Activator.CreateInstance<T>();