示例#1
0
 /// <summary>Sets an instruction at current position</summary>
 /// <param name="instruction">The instruction to set</param>
 /// <returns>The same code matcher</returns>
 ///
 public CodeMatcher SetInstruction(CodeInstruction instruction)
 {
     codes[Pos] = instruction;
     return(this);
 }
示例#2
0
 /// <summary>Sets instruction at current position and advances</summary>
 /// <param name="instruction">The instruction</param>
 /// <returns>The same code matcher</returns>
 ///
 public CodeMatcher SetInstructionAndAdvance(CodeInstruction instruction)
 {
     _ = SetInstruction(instruction);
     Pos++;
     return(this);
 }
 /// <summary>Create a full copy (including labels and exception blocks) of a CodeInstruction</summary>
 /// <param name="instruction">The instruction to copy</param>
 ///
 public CodeInstruction(CodeInstruction instruction)
 {
     throw new PlatformNotSupportedException();
 }