public IEnumerable <string> Lines() { foreach (var line in source.Lines()) { if (!string.IsNullOrWhiteSpace(line)) { ProcessedLines += 1; yield return(line); } } }
public IEnumerable <string> Lines() { foreach (var line in source.Lines()) { if (IsCommentLine(line)) { var trimmed = RemoveTrailingComments(line); if (!string.IsNullOrWhiteSpace(trimmed)) { ProcessedLines += 1; yield return(trimmed); } } } }