public LineChange(LineChangeType changeType, string text) { ChangeType = changeType; Text = text; }
public DiffLine(string text, LineChangeType lineChangeType) { Text = text; LineChangeType = lineChangeType; }
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); }