PERWAPI.CILInstructions.GetNextInstruction C# (CSharp) Method

GetNextInstruction() public method

Get the next instruction in the instruction buffer in sequence. An internal index is kept to keep track of which instruction was the last retrieved by this method. On the first call, the first instruction in the buffer is retrieved. The instruction index may be zeroed using ResetInstCounter(). This method cannot be called when in "insert" mode.
public GetNextInstruction ( ) : CILInstruction
return CILInstruction
        public CILInstruction GetNextInstruction()
        {
            if (inserting) throw new Exception("Cannot access next instruction during insert");
            if (currI+1 < tide)
                return buffer[++currI];
            return null;
        }