<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.6.26359.118" />

System.Reflection.Metadata.Ecma335.ControlFlowBuilder

public sealed class ControlFlowBuilder
Emits branches and exception blocks in a method body.

public void AddCatchRegion(LabelHandle tryStart, LabelHandle tryEnd, LabelHandle handlerStart, LabelHandle handlerEnd, EntityHandle catchType)

Adds catch region.

public void AddFaultRegion(LabelHandle tryStart, LabelHandle tryEnd, LabelHandle handlerStart, LabelHandle handlerEnd)

Adds fault region.

public void AddFilterRegion(LabelHandle tryStart, LabelHandle tryEnd, LabelHandle handlerStart, LabelHandle handlerEnd, LabelHandle filterStart)

Adds catch region.

public void AddFinallyRegion(LabelHandle tryStart, LabelHandle tryEnd, LabelHandle handlerStart, LabelHandle handlerEnd)

Adds finally region.

public void Clear()

Clears the object's internal state, allowing the same instance to be reused.