Class CecilAssemblyResolver
An assembly resolver implementation that forwards assembly resolution requests to Mono.Cecil assembly resolver.
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class CecilAssemblyResolver : AssemblyResolver
Constructors
| Improve this Doc View SourceCecilAssemblyResolver(IAssemblyResolver, TypeEnvironment)
Creates a Flame assembly resolver that forwards requests to a Mono.Cecil assembly resolver.
Declaration
public CecilAssemblyResolver(IAssemblyResolver resolver, TypeEnvironment typeEnvironment)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.IAssemblyResolver | resolver | The Mono.Cecil assembly resolver to use. |
TypeEnvironment | typeEnvironment | The Flame type environment to use when analyzing assemblies. |
CecilAssemblyResolver(IAssemblyResolver, TypeEnvironment, ReaderParameters)
Creates a Flame assembly resolver that forwards requests to a Mono.Cecil assembly resolver.
Declaration
public CecilAssemblyResolver(IAssemblyResolver resolver, TypeEnvironment typeEnvironment, ReaderParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.IAssemblyResolver | resolver | The Mono.Cecil assembly resolver to use. |
TypeEnvironment | typeEnvironment | The Flame type environment to use when analyzing assemblies. |
Mono.Cecil.ReaderParameters | parameters | The Mono.Cecil reader parameters to use. |
Properties
| Improve this Doc View SourceParameters
Gets the Mono.Cecil reader parameters to use.
Declaration
public ReaderParameters Parameters { get; }
Property Value
Type | Description |
---|---|
Mono.Cecil.ReaderParameters |
ReferenceResolver
Gets the Flame reference resolver for this assembly resolver.
Declaration
public ReferenceResolver ReferenceResolver { get; }
Property Value
Type | Description |
---|---|
ReferenceResolver |
Resolver
Gets the Mono.Cecil assembly resolver to which requests are forwarded.
Declaration
public IAssemblyResolver Resolver { get; }
Property Value
Type | Description |
---|---|
Mono.Cecil.IAssemblyResolver |
TypeEnvironment
Gets the Flame type environment to use when analyzing assemblies.
Declaration
public TypeEnvironment TypeEnvironment { get; }
Property Value
Type | Description |
---|---|
TypeEnvironment |
Methods
| Improve this Doc View SourceTryResolve(AssemblyIdentity, out IAssembly)
Tries to resolve an assembly based on an identity.
Declaration
public override bool TryResolve(AssemblyIdentity identity, out IAssembly assembly)
Parameters
Type | Name | Description |
---|---|---|
AssemblyIdentity | identity | An assembly identity that references the assembly to resolve. |
IAssembly | assembly | The assembly that is referenced by |
Returns
Type | Description |
---|---|
System.Boolean |
|