// InstrBase.cs // (C) Sergey Chaban (serge@wildwestsoftware.com) using System; using System.Reflection.Emit; namespace Mono.ILASM { public abstract class InstrBase { private OpCode opcode; /// /// /// public InstrBase (OpCode opcode) { this.opcode = opcode; } /// /// /// public InstrBase (InstrToken tok) : this ((OpCode)tok.Value) { } /// /// /// public InstrBase (ILToken tok) : this (tok as InstrToken) { } /// /// public OpCode Opcode { get { return opcode; } } /// /// /// public abstract void Emit (ILGenerator ilgen, Class host); } }