using System;
While Activator.CreateInstance is easy to use, other methods exist in .NET 4.6.1 for creating instances. activators dotnet 4.6.1
If you are currently maintaining a .NET 4.6.1 system, it is highly advised to review the Microsoft support lifecycle and plan a migration path to a supported framework version. NET 4.6.1? Let me know: using System; While Activator
This is essential for scenarios where your application needs to load a class based on a configuration file, user input, or a dynamically loaded DLL. Key Features of System.Activator While Activator.CreateInstance is easy to use