using System; using System.Collections.Generic; using System.Reflection.Emit; namespace Harmony.ILCopying { public enum ExceptionBlockType { BeginExceptionBlock, BeginCatchBlock, BeginExceptFilterBlock, BeginFaultBlock, BeginFinallyBlock, EndExceptionBlock } public class ExceptionBlock { public ExceptionBlockType blockType; public Type catchType; public ExceptionBlock(ExceptionBlockType blockType, Type catchType) { this.blockType = blockType; this.catchType = catchType; } } public class ILInstruction { public int offset; public OpCode opcode; public object operand; public object argument; public List