ResolveAssemblyOptions Enumeration

Provides options for the Reflector.ResolveAssembly methods.

Definition

Namespace: KGySoft.Reflection
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
[FlagsAttribute]
public enum ResolveAssemblyOptions

Members

None0x00

Represents no enabled options.

TryToLoadAssembly0x01

If this flag is enabled, then the Reflector.ResolveAssembly methods try to load the assembly if it is not loaded yet. Otherwise, the assembly is tried to be located among the already loaded assemblies.

Default state at Reflector.ResolveAssembly methods: Enabled

AllowPartialMatch0x02

If this flag is enabled, then the Reflector.ResolveAssembly methods allow to return an already loaded assembly of any version, culture and public key token, or, if the assembly is not loaded, this flag allows to load it by partial identity if possible. If this flag is disabled, then the provided assembly information must match (which still can be a partial name).

  Note

Depending on the type system of the current platform it can happen that a new assembly of an unmatching identity is loaded even if this flag is disabled. In such case the loaded assembly is not returned though.

Default state at Reflector.ResolveAssembly methods: Enabled

ThrowError0x10

If this flag is enabled and the assembly cannot be resolved, then a ReflectionException will be thrown from the Reflector.ResolveAssembly methods.

Default state at Reflector.ResolveAssembly methods: Disabled

See Also