Dotnet 4.6.1 — Activators
if the type cannot be instantiated (e.g., it's an abstract class). Microsoft Learn Performance : Repeated use of Activator.CreateInstance is slower than using the
You have a fully qualified name of a class as a string. Maybe it came from a config file. You don't know if it's a Truck or a Car , but you know it implements IVehicle . activators dotnet 4.6.1
catch (TargetInvocationException ex)