Show / Hide Table of Contents

Struct ExceptionBlock

Represents an exception handling block

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: CilTools.Reflection
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public struct ExceptionBlock

Constructors

ExceptionBlock(ExceptionHandlingClauseOptions, Int32, Int32, Type, Int32, Int32, Int32)

Initializes a new ExceptionBlock instance using provided property values

Declaration
public ExceptionBlock(ExceptionHandlingClauseOptions pFlags, int pTryOffset, int pTryLength, Type pCatchType, int pHandlerOffset, int pHandlerLength, int pFilterOffset)
Parameters
Type Name Description
System.Reflection.ExceptionHandlingClauseOptions pFlags
System.Int32 pTryOffset
System.Int32 pTryLength
System.Type pCatchType
System.Int32 pHandlerOffset
System.Int32 pHandlerLength
System.Int32 pFilterOffset

Properties

CatchType

Gets the type of exception handled by the catch block

Declaration
public Type CatchType { get; }
Property Value
Type Description
System.Type

FilterOffset

Gets the offset of this block's exception filter within the method body, in bytes

Declaration
public int FilterOffset { get; }
Property Value
Type Description
System.Int32

Flags

Gets the value specifying the type of exception block

Declaration
public ExceptionHandlingClauseOptions Flags { get; }
Property Value
Type Description
System.Reflection.ExceptionHandlingClauseOptions

HandlerLength

Gets the length of this block's handler, in bytes

Declaration
public int HandlerLength { get; }
Property Value
Type Description
System.Int32

HandlerOffset

Gets the offset of this block's handler within the method body, in bytes

Declaration
public int HandlerOffset { get; }
Property Value
Type Description
System.Int32

TryLength

Gets the length of this block's try clause, in bytes

Declaration
public int TryLength { get; }
Property Value
Type Description
System.Int32

TryOffset

Gets the offset of this block's try clause within the method body, in bytes

Declaration
public int TryOffset { get; }
Property Value
Type Description
System.Int32

Methods

FromReflection(ExceptionHandlingClause)

Creates new ExceptionBlock instance based on the specified reflection ExceptionHandlingClause object

Declaration
public static ExceptionBlock FromReflection(ExceptionHandlingClause clause)
Parameters
Type Name Description
System.Reflection.ExceptionHandlingClause clause
Returns
Type Description
ExceptionBlock
Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX