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
asmName
stringThe name of the assembly containing the type.
typeName
stringThe name of the type to create.
Returns
- T
An instance of the specified type, or null if the type cannot be found.
Type Parameters
T
The type to which created object is casted.