Mono.Linker.Pipeline.AddStepAfter C# (CSharp) Method

AddStepAfter() public method

public AddStepAfter ( IStep target, IStep step ) : void
target IStep
step IStep
return void
		public void AddStepAfter (IStep target, IStep 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;
				}
			}
		}

Same methods

Pipeline::AddStepAfter ( Type target, IStep step ) : void

Usage Example

Beispiel #1
0
        protected static void AddCustomStep(Pipeline pipeline, string arg)
        {
            int pos = arg.IndexOf(":");

            if (pos == -1)
            {
                pipeline.AppendStep(ResolveStep(arg));
                return;
            }

            string [] parts = arg.Split(':');
            if (parts.Length != 2)
            {
                Usage("Step is specified as TYPE:STEP");
            }

            if (parts [0].IndexOf(",") > -1)
            {
                pipeline.AddStepBefore(FindStep(pipeline, parts [1]), ResolveStep(parts [0]));
            }
            else if (parts [1].IndexOf(",") > -1)
            {
                pipeline.AddStepAfter(FindStep(pipeline, parts [0]), ResolveStep(parts [1]));
            }
            else
            {
                Usage("No comma separator in TYPE or STEP");
            }
        }
All Usage Examples Of Mono.Linker.Pipeline::AddStepAfter