Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public DiffSection(DiffSectionType type, LongestCommonSubstringResult lcs)
 {
     Type = type;
     LCS  = lcs;
 }
Exemplo n.º 3
0
 public DiffSection(DiffSectionType type, int length)
 {
     _Type   = type;
     _Length = length;
 }