コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Pipeline.cs プロジェクト: n017/ConfuserDeobfuscator
 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;
         }
     }
 }
コード例 #3
0
ファイル: Pipeline.cs プロジェクト: n017/ConfuserDeobfuscator
 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);
 }
コード例 #4
0
 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;
         }
     }
 }
コード例 #5
0
 public void ReplaceStep(Type target, IDeobfuscationRoutine step)
 {
     AddStepBefore(target, step);
     RemoveStep(target);
 }
コード例 #6
0
 public void AppendStep(IDeobfuscationRoutine step)
 {
     _steps.Add(step);
 }
コード例 #7
0
 public void PrependStep(IDeobfuscationRoutine step)
 {
     _steps.Insert(0, step);
 }
コード例 #8
0
ファイル: Pipeline.cs プロジェクト: n017/ConfuserDeobfuscator
 public void ReplaceStep(Type target, IDeobfuscationRoutine step)
 {
     AddStepBefore(target, step);
     RemoveStep(target);
 }
コード例 #9
0
ファイル: Pipeline.cs プロジェクト: n017/ConfuserDeobfuscator
 public void PrependStep(IDeobfuscationRoutine step)
 {
     _steps.Insert(0, step);
 }
コード例 #10
0
ファイル: Pipeline.cs プロジェクト: n017/ConfuserDeobfuscator
 public void AppendStep(IDeobfuscationRoutine step)
 {
     _steps.Add(step);
 }