dnr : dylan.NET.Reflection Namespace

InstructionHelper Class

This class contains the infrastructure to return an OpCode instance given an opcode's name.

Syntax

public class InstructionHelper

Remarks

Use this class whenever you need an OpCOde isntance.

Requirements

Namespace: dylan.NET.Reflection
Assembly: dnr (in dnr.dll)
Assembly Versions: 11.2.7.3, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

Members

See Also: Inherited members from object.

Public Constructors

Constructs a new InstructionHelper".

Public Methods

static
compStr (string, string) : bool
Compares 2 strings.
static
getOPCode (string) : System.Reflection.Emit.OpCode
Fetches the OpCode instance corresponding to the opcode name supplied.

Member Details

InstructionHelper Constructor

Constructs a new InstructionHelper".

Syntax

public InstructionHelper ()

Remarks

Requirements

Namespace: dylan.NET.Reflection
Assembly: dnr (in dnr.dll)
Assembly Versions: 11.2.7.3, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

compStr Method

Compares 2 strings.

Syntax

public static bool compStr (string s1, string s2)

Parameters

s1
The first string.
s2
The second string.

Returns

True if the strings are equal else returns False.

Remarks

This is mostly used as infrastructure for the getOPCode method.

Requirements

Namespace: dylan.NET.Reflection
Assembly: dnr (in dnr.dll)
Assembly Versions: 11.2.7.3, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

getOPCode Method

Fetches the OpCode instance corresponding to the opcode name supplied.

Syntax

public static System.Reflection.Emit.OpCode getOPCode (string code)

Parameters

code
The opcode name as it use in the 'ILAsm' language e.g. ldc.i4, ldnull, newobj etc..

Returns

An OpCode instance.

Remarks

See the source code for this method to determin if the opcode you want is supoported.

Requirements

Namespace: dylan.NET.Reflection
Assembly: dnr (in dnr.dll)
Assembly Versions: 11.2.7.3, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1