Table of Contents

Class ILStructure

Namespace
ICSharpCode.Decompiler.Disassembler
Assembly
ICSharpCode.Decompiler.dll

An IL structure.

public class ILStructure
Inheritance
ILStructure
Inherited Members

Constructors

ILStructure(PEFile, MethodDefinitionHandle, MetadataGenericContext, ILStructureType, int, int, int)

public ILStructure(PEFile module, MethodDefinitionHandle handle, MetadataGenericContext genericContext, ILStructureType type, int startOffset, int endOffset, int loopEntryPoint)

Parameters

module PEFile
handle MethodDefinitionHandle
genericContext MetadataGenericContext
type ILStructureType
startOffset int
endOffset int
loopEntryPoint int

ILStructure(PEFile, MethodDefinitionHandle, MetadataGenericContext, ILStructureType, int, int, ExceptionRegion)

public ILStructure(PEFile module, MethodDefinitionHandle handle, MetadataGenericContext genericContext, ILStructureType type, int startOffset, int endOffset, ExceptionRegion handler = default)

Parameters

module PEFile
handle MethodDefinitionHandle
genericContext MetadataGenericContext
type ILStructureType
startOffset int
endOffset int
handler ExceptionRegion

ILStructure(PEFile, MethodDefinitionHandle, MetadataGenericContext, MethodBodyBlock)

public ILStructure(PEFile module, MethodDefinitionHandle handle, MetadataGenericContext genericContext, MethodBodyBlock body)

Parameters

module PEFile
handle MethodDefinitionHandle
genericContext MetadataGenericContext
body MethodBodyBlock

Fields

Children

The list of child structures.

public readonly List<ILStructure> Children

Field Value

List<ILStructure>

EndOffset

End position of the structure. (exclusive)

public readonly int EndOffset

Field Value

int

ExceptionHandler

The exception handler associated with the Try, Filter or Handler block.

public readonly ExceptionRegion ExceptionHandler

Field Value

ExceptionRegion

GenericContext

public readonly MetadataGenericContext GenericContext

Field Value

MetadataGenericContext

LoopEntryPointOffset

The loop's entry point.

public readonly int LoopEntryPointOffset

Field Value

int

MethodHandle

public readonly MethodDefinitionHandle MethodHandle

Field Value

MethodDefinitionHandle

Module

public readonly PEFile Module

Field Value

PEFile

StartOffset

Start position of the structure.

public readonly int StartOffset

Field Value

int

Type

public readonly ILStructureType Type

Field Value

ILStructureType

Methods

GetInnermost(int)

Gets the innermost structure containing the specified offset.

public ILStructure GetInnermost(int offset)

Parameters

offset int

Returns

ILStructure