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