private bool CompareInstructionsInOrder (Expression targetExpression) { bool equality = true; for (int index = 0; index < Count; index++) { Instruction instruction = this[index]; Instruction targetInstruction = targetExpression[index]; if (CheckEqualityForOpCodes (instruction, targetInstruction)) { if (instruction.OpCode.FlowControl == FlowControl.Call) { equality = equality & (instruction.Operand == targetInstruction.Operand); } } else return false;; } return equality; }
private void CreateExpressionAndAddToExpressionContainer () { currentExpression = new Expression (); expressionContainer.Add (currentExpression); }
private bool HasSameSize (Expression expression) { return Count == expression.Count; }
public override void VisitMethodBody (MethodBody methodBody) { expressionContainer = new ArrayList (); currentExpression = null; }