Class EmptyOperandResolver
- Namespace
- AsmResolver.PE.DotNet.Cil
- Assembly
- AsmResolver.PE.dll
Provides an implementation of the ICilOperandResolver that always returns null
.
public sealed class EmptyOperandResolver : ICilOperandResolver
- Inheritance
-
EmptyOperandResolver
- Implements
- Inherited Members
Properties
Instance
Gets the singleton instance of the empty operand resolver.
public static EmptyOperandResolver Instance { get; }
Property Value
Methods
ResolveLocalVariable(int)
Resolves a local variable operand.
public object? ResolveLocalVariable(int index)
Parameters
index
intThe index of the local variable to resolve.
Returns
- object
The local variable, or
null
if the index could not be resolved to a local variable.
ResolveMember(MetadataToken)
Resolves a member operand.
public object? ResolveMember(MetadataToken token)
Parameters
token
MetadataTokenThe metadata token of the referenced member.
Returns
- object
The member, or
null
if the metadata token could not be resolved to a member.
ResolveParameter(int)
Resolves a parameter operand.
public object? ResolveParameter(int index)
Parameters
index
intThe index of the parameter to resolve.
Returns
- object
The parameter, or
null
if the index could not be resolved to a local variable.
ResolveString(MetadataToken)
Resolves a string operand.
public object? ResolveString(MetadataToken token)
Parameters
token
MetadataTokenThe metadata token of the referenced string/
Returns
- object
The string, or
null
if the metadata token could not be resolved to a string.