 | AssemblyLoaderDynamicLoadObjectOfTypeFromAssembly method |
Dynamically loads an object of the transferred type from the specified assembly.
All assemblies referenced by the specified assembly are additionally
also searched for in assemblyDirectories.
Namespace: NetEti.GlobalsAssembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntaxpublic Object? DynamicLoadObjectOfTypeFromAssembly(
string assemblyPathName,
Type objectType
)
Public Function DynamicLoadObjectOfTypeFromAssembly (
assemblyPathName As String,
objectType As Type
) As Object
public:
Object^ DynamicLoadObjectOfTypeFromAssembly(
String^ assemblyPathName,
Type^ objectType
)
member DynamicLoadObjectOfTypeFromAssembly :
assemblyPathName : string *
objectType : Type -> Object
Parameters
- assemblyPathName String
- The assembly that publishes the object to be loaded.
- objectType Type
- The type of the object to be instantiated from the assembly
Return value
ObjectInstance from the passed assembly of the passed type or null
See also