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. |
pFlags | |
System. |
pTryOffset | |
System. |
pTryLength | |
System. |
pCatchType | |
System. |
pHandlerOffset | |
System. |
pHandlerLength | |
System. |
pFilterOffset |
Properties
CatchType
Gets the type of exception handled by the catch block
Declaration
public Type CatchType { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
Flags
Gets the value specifying the type of exception block
Declaration
public ExceptionHandlingClauseOptions Flags { get; }
Property Value
Type | Description |
---|---|
System. |
HandlerLength
Gets the length of this block's handler, in bytes
Declaration
public int HandlerLength { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
TryLength
Gets the length of this block's try clause, in bytes
Declaration
public int TryLength { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
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. |
clause |
Returns
Type | Description |
---|---|
Exception |