Esempio n. 1
0
 private DirectDiffLine CreateEmptyLine(int lineNum, LineDiffType type)
 {
     return(new DirectDiffLine
     {
         Content = string.Empty,
         LineNumber = lineNum,
         Type = type.ToString().ToLower()
     });
 }
Esempio n. 2
0
        private DirectDiffLine CreateLine(string rawContent, int lineNum, LineDiffType type)
        {
            if (rawContent == string.Empty)
            {
                return(CreateEmptyLine(lineNum, type));
            }

            return(new DirectDiffLine
            {
                Content = rawContent.Substring(1),
                LineNumber = lineNum,
                Type = type.ToString().ToLower()
            });
        }
Esempio n. 3
0
        private int AddLine(List <DirectDiffLine> list, string content, int lineNum, LineDiffType type)
        {
            list.Add(CreateLine(content, lineNum, type));

            return(++lineNum);
        }