示例#1
0
 public LineChange(LineChangeType changeType, string text)
 {
     ChangeType = changeType;
     Text = text;
 }
示例#2
0
 public DiffLine(string text, LineChangeType lineChangeType)
 {
     Text = text;
     LineChangeType = lineChangeType;
 }
示例#3
0
 public LineDiff(LineChangeType type, int index, string content)
 {
     Type = type;
     Index = index;
     Content = content;
 }
 private LineChange NewLineChange(LineChangeType type, 
     StringBuilder diff, int startIndex, int endIndex)
 {
     string text = diff.ToString().Substring(startIndex, endIndex - startIndex - 2);
     return new LineChange(type, text);
 }