Click or drag to resize

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.Globals
Assembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntax
public Object? DynamicLoadObjectOfTypeFromAssembly(
	
	string assemblyPathName,
	
	Type objectType
)

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

Object
Instance from the passed assembly of the passed type or null
See also