BSPGenerationTools.Patch.InsertLines.Apply C# (CSharp) Method

Apply() public method

public Apply ( List lines ) : void
lines List
return void
            public override void Apply(List<string> lines)
            {
                bool found = false;
                for (int i = 0; i < lines.Count; i++)
                {
                    if (lines[i] == AfterLine)
                    {
                        lines.InsertRange(i + 1, InsertedLines);
                        found = true;
                        break;
                    }
                }
                if (!found)
                    throw new Exception("Failed to apply patch for " + FilePath);
            }
Patch.InsertLines