Skip to content
Concord

Class ExceptionBlock

Namespace
Concord
Assembly
Concord.Emit.dll

An exception-handling boundary attached to a CodeInstruction. Member names are lowercase to match Harmony so migrating transpiler bodies compile unchanged; do not rename them to house style.

public sealed class ExceptionBlock
Inheritance
ExceptionBlock
Inherited Members

Constructors

ExceptionBlock(ExceptionBlockType, Type?)

Creates an exception block boundary.

public ExceptionBlock(ExceptionBlockType blockType, Type? catchType = null)

Parameters

blockType ExceptionBlockType

The kind of boundary.

catchType Type

The caught type, for BeginCatchBlock.

Properties

blockType

The kind of boundary this marks.

public ExceptionBlockType blockType { get; set; }

Property Value

ExceptionBlockType

catchType

The caught type, when this is a typed catch boundary.

public Type? catchType { get; set; }

Property Value

Type