ReflectorResolveAssembly(String, Boolean, Boolean) Method

Note: This API is now obsolete.
Gets the Assembly with the specified assemblyName.

Definition

Namespace: KGySoft.Reflection
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
[ObsoleteAttribute("This overload is obsolete. Use the overloads with ResolveAssemblyOptions instead.")]
public static Assembly? ResolveAssembly(
	string assemblyName,
	bool tryToLoad,
	bool matchBySimpleName
)

Parameters

assemblyName  String
Name of the Assembly to retrieve. May contain a fully or partially defined assembly name.
tryToLoad  Boolean
If , searches the assembly among the already loaded assemblies. If , tries to load the assembly when it is not already loaded.
matchBySimpleName  Boolean
to ignore version, culture and public key token information differences; to allow only an exact match with the provided information.

Return Value

Assembly
An Assembly instance with the loaded assembly, or if assemblyName could not be resolved by the provided arguments.

Exceptions

ArgumentNullExceptionassemblyName is .
ArgumentExceptionassemblyName is empty.

See Also