public void AddStepBefore(Type target, IDeobfuscationRoutine step) { for (int i = 0; i < _steps.Count; i++) { if (target.IsInstanceOfType(_steps[i])) { _steps.Insert(i, step); return; } } string msg = String.Format("Step {0} could not be inserted before (not found) {1}", step, target); throw new InvalidOperationException(msg); }
public void AddStepAfter(IDeobfuscationRoutine target, IDeobfuscationRoutine step) { for (int i = 0; i < _steps.Count; i++) { if (_steps[i] == target) { if (i == _steps.Count - 1) _steps.Add(step); else _steps.Insert(i + 1, step); return; } } }
public void AddStepAfter(Type target, IDeobfuscationRoutine step) { for (int i = 0; i < _steps.Count; i++) { if (target.IsInstanceOfType(_steps[i])) { if (i == _steps.Count - 1) _steps.Add(step); else _steps.Insert(i + 1, step); return; } } string msg = String.Format("Step {0} could not be inserted after (not found) {1}", step, target); throw new InvalidOperationException(msg); }
public void AddStepAfter(IDeobfuscationRoutine target, IDeobfuscationRoutine step) { for (int i = 0; i < _steps.Count; i++) { if (_steps[i] == target) { if (i == _steps.Count - 1) { _steps.Add(step); } else { _steps.Insert(i + 1, step); } return; } } }
public void ReplaceStep(Type target, IDeobfuscationRoutine step) { AddStepBefore(target, step); RemoveStep(target); }
public void AppendStep(IDeobfuscationRoutine step) { _steps.Add(step); }
public void PrependStep(IDeobfuscationRoutine step) { _steps.Insert(0, step); }