Click or drag to resize

VishnuAssemblyLoaderDynamicLoadObjectOfTypeFromAssembly 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: Vishnu.Interchange
Assembly: Vishnu.Interchange (in Vishnu.Interchange.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public Object? DynamicLoadObjectOfTypeFromAssembly(
	
	string assemblyPathName,
	
	Type objectType,
	
	bool force = false
)

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
force  Boolean  (Optional)
Optional - if true, the assembly is not taken from the cache, default: false

Return value

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