private int GetNumberOfLines(SyntaxTriviaList triviaList) { return(triviaList.Sum(t => t.ToFullString().Replace("\r\n", "\r").Cast <char>().Count(c => SyntaxFacts.IsNewLine(c)))); }
private int GetNumberOfLines(SyntaxTriviaList triviaList) { return triviaList.Sum(t => t.ToFullString().Replace("\r\n", "\r").Cast<char>().Count(c => SyntaxFacts.IsNewLine(c))); }