/// <summary> /// A helper function for creating Boxes /// </summary> /// <param name="opcode"></param> /// <returns></returns> /// <remarks> /// Intended to make Box creating code cleaner by delegating the getting of instruction size and construction of object to a seperate function /// </remarks> private InstructionBox MakeInstructionBox(Opcode opcode) { int instructionSize = OpcodeInfo.GetInstructionSize(opcode); return(new InstructionBox(instructionSize)); }
/// <summary> /// A helper function for creating Boxes /// </summary> /// <param name="opcode"></param> /// <returns></returns> /// <remarks> /// Intended to make Box creating code cleaner by delegating the getting of instruction size and construction of object to a seperate function /// </remarks> internal static InstructionBox MakeInstructionBox(Opcode opcode) { int instructionSize = OpcodeInfo.GetInstructionSize(opcode); return(new InstructionBox(instructionSize)); }