Catel.Fody.InstructionListExtensions.BeforeLast C# (CSharp) Method

BeforeLast() public static method

public static BeforeLast ( this collection ) : void
collection this
return void
        public static void BeforeLast(this Collection<Instruction> collection, params Instruction[] instructions)
        {
            var index = collection.Count - 1;
            foreach (var instruction in instructions)
            {
                collection.Insert(index, instruction);
                index++;
            }
        }