Method ActivatorCreateInstance
ActivatorCreateInstance<T>(string, string)
Creates an instance of the given type using the default constructor. Type is specified using its name and assembly name where it is located.
public static T? ActivatorCreateInstance<T>(string asmName, string typeName)
Parameters
asmNamestringThe name of the assembly containing the type.
typeNamestringThe name of the type to create.
Returns
- T
An instance of the specified type, or null if the type cannot be found.
Type Parameters
TThe type to which created object is casted.