C# Class PERWAPI.TryBlock

The descriptor for a guarded block (.try)
Inheritance: CodeBlock
Show file Open project: xored/f4 Class Usage Examples

Protected Properties

Property Type Description
fatFormat bool
flags ushort

Public Methods

Method Description
AddHandler ( HandlerBlock handler ) : void

Add a handler to this try block

GetHandlers ( ) : PERWAPI.HandlerBlock[]

Get an array containing all the handlers.

TryBlock ( CILLabel start, CILLabel end ) : System

Create a new try block

Private Methods

Method Description
BuildCILInfo ( CILWriter output ) : void
BuildTables ( MetaDataOut md ) : void
NumHandlers ( ) : int
SetSize ( ) : void
Write ( PEWriter output, bool fatFormat ) : void
isFat ( ) : bool

Method Details

AddHandler() public method

Add a handler to this try block
public AddHandler ( HandlerBlock handler ) : void
handler HandlerBlock a handler to be added to the try block
return void

GetHandlers() public method

Get an array containing all the handlers.
public GetHandlers ( ) : PERWAPI.HandlerBlock[]
return PERWAPI.HandlerBlock[]

TryBlock() public method

Create a new try block
public TryBlock ( CILLabel start, CILLabel end ) : System
start CILLabel start label for the try block
end CILLabel end label for the try block
return System

Property Details

fatFormat protected property

protected bool fatFormat
return bool

flags protected property

protected ushort flags
return ushort