public IEnumerable <string> Lines()
 {
     foreach (var line in source.Lines())
     {
         if (!string.IsNullOrWhiteSpace(line))
         {
             ProcessedLines += 1;
             yield return(line);
         }
     }
 }
示例#2
0
 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);
             }
         }
     }
 }