Struct AccessPathElement
- Namespace
- ICSharpCode.Decompiler.IL.Transforms
- Assembly
- ICSharpCode.Decompiler.dll
public struct AccessPathElement : IEquatable<AccessPathElement>
- Implements
-
- Inherited Members
-
Constructors
public AccessPathElement(OpCode opCode, IMember member, ILInstruction[]? indices = null)
Parameters
opCode
OpCode
member
IMember
indices
ILInstruction[]
Fields
public readonly ILInstruction[]? Indices
Field Value
- ILInstruction[]
public readonly IMember Member
Field Value
- IMember
public readonly OpCode OpCode
Field Value
- OpCode
Methods
public bool Equals(AccessPathElement other)
Parameters
other
AccessPathElement
Returns
- bool
public override bool Equals(object? obj)
Parameters
obj
object
Returns
- bool
GetAccessPath(ILInstruction, IType, DecompilerSettings?, CSharpTypeResolveContext?, Dictionary<ILVariable, (int Index, ILInstruction Value)>?)
public static (AccessPathKind Kind, List<AccessPathElement> Path, List<ILInstruction>? Values, ILVariable? Target) GetAccessPath(ILInstruction instruction, IType rootType, DecompilerSettings? settings = null, CSharpTypeResolveContext? resolveContext = null, Dictionary<ILVariable, (int Index, ILInstruction Value)>? possibleIndexVariables = null)
Parameters
instruction
ILInstruction
rootType
IType
settings
DecompilerSettings
resolveContext
CSharpTypeResolveContext
possibleIndexVariables
Dictionary<ILVariable, (int Index, ILInstruction Value)>
Returns
- (AccessPathKind Kind, List<AccessPathElement> Path, List<ILInstruction> Values, ILVariable Target)
public override int GetHashCode()
Returns
- int
public override string ToString()
Returns
- string
Operators
public static bool operator ==(AccessPathElement lhs, AccessPathElement rhs)
Parameters
lhs
AccessPathElement
rhs
AccessPathElement
Returns
- bool
public static bool operator !=(AccessPathElement lhs, AccessPathElement rhs)
Parameters
lhs
AccessPathElement
rhs
AccessPathElement
Returns
- bool