Interface IAssemblyLoadingProvider
Interface representing a reflection provider used to load System.Reflection.Assembly objects.
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IAssemblyLoadingProvider
Methods
Load(AssemblyName)
Loads an assembly given its System.Reflection.AssemblyName.
Declaration
Assembly Load(AssemblyName assemblyRef)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.AssemblyName | assemblyRef | The object that describes the assembly to be loaded. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
Load(String)
Loads an assembly given the long form of its name.
Declaration
Assembly Load(string assemblyString)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyString | The long form of the assembly name. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
LoadFile(String)
Loads the contents of an assembly file on the specified path.
Declaration
Assembly LoadFile(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of the file to load. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
LoadFrom(String, Byte[], AssemblyHashAlgorithm)
Loads an assembly given its file name or path, hash value, and hash algorithm.
Declaration
Assembly LoadFrom(string assemblyFile, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyFile | The name or path of the file that contains the manifest of the assembly. |
System.Byte[] | hashValue | The value of the computed hash code. |
System.Configuration.Assemblies.AssemblyHashAlgorithm | hashAlgorithm | The hash algorithm used for hashing files and for generating the strong name. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
ReflectionOnlyLoad(Byte[])
Loads the assembly from a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the reflection-only context of the caller's application domain.
Declaration
Assembly ReflectionOnlyLoad(byte[] rawAssembly)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | rawAssembly | A byte array that is a COFF-based image containing an emitted assembly. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
ReflectionOnlyLoad(String)
Loads an assembly into the reflection-only context, given its display name.
Declaration
Assembly ReflectionOnlyLoad(string assemblyString)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyString | The display name of the assembly, as returned by the System.Reflection.AssemblyName.FullName property. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
ReflectionOnlyLoadFrom(String)
Loads an assembly into the reflection-only context, given its path.
Declaration
Assembly ReflectionOnlyLoadFrom(string assemblyFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyFile | The path of the file that contains the manifest of the assembly. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |
UnsafeLoadFrom(String)
Loads an assembly into the load-from context, bypassing some security checks.
Declaration
Assembly UnsafeLoadFrom(string assemblyFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyFile | The name or path of the file that contains the manifest of the assembly. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The loaded assembly. |