Activators Dotnet 4.6.1 Guide

Type t = typeof(List<string>); object list = Activator.CreateInstance(t); Console.WriteLine(list.GetType().Name); // Output: List`1

: Creating objects based on configurations stored in XML or JSON files. Recommendation: Since .NET 4.6.1 is officially retired , you should migrate your projects to at least .NET Framework 4.6.2 or preferably .NET 4.8/4.8.1 activators dotnet 4.6.1

They had a Type object—a blueprint—but no way to write the new keyword because the code hadn't been written yet. Type t = typeof(List&lt;string&gt;); object list = Activator