Class DefaultAssemblyLoader
The default assembly loader.
Inheritance
System.Object
DefaultAssemblyLoader
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Reflection
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultAssemblyLoader : IAssemblyLoader
Constructors
| Improve this Doc View SourceDefaultAssemblyLoader()
Initializes a new instance of the DefaultAssemblyLoader class.
Declaration
public DefaultAssemblyLoader()
Methods
| Improve this Doc View SourceLoadAssembly(AssemblyName)
Attempts to load an assembly.
Declaration
public Assembly LoadAssembly(AssemblyName assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.AssemblyName | assemblyName | The name of the assembly to be loaded. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The resolved assembly reference. |
LoadAssemblyFromPath(String)
Attempts to load an assembly.
Declaration
public Assembly LoadAssemblyFromPath(string assemblyFilePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyFilePath | The file path of the assembly to be loaded. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The resolved assembly reference. |
TryResolveAssembly(AssemblyLoadContext, AssemblyName)
Tries to resolve the assembly.
Declaration
protected virtual Assembly TryResolveAssembly(AssemblyLoadContext assemblyLoadContext, AssemblyName assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Loader.AssemblyLoadContext | assemblyLoadContext | Context for the assembly load. |
System.Reflection.AssemblyName | assemblyName | Name of the assembly. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | The resolved assembly or |