public void AddSection(string text, DiffSectionType sectionType = DiffSectionType.Unchanged) { if (sectionType == DiffSectionType.Added) { AddNewSection(text, _green); } else if (sectionType == DiffSectionType.Removed) { AddNewSection(text, _red); } else { AddNewSection(text); } }
public DiffSection(DiffSectionType type, LongestCommonSubstringResult lcs) { Type = type; LCS = lcs; }
public DiffSection(DiffSectionType type, int length) { _Type = type; _Length = length; }