Exemplo n.º 1
0
 public LOCInfo CalculateSum(IEnumerable<LOCInfo> locInfos) {
     var result = new LOCInfo();
     foreach (var locInfo in locInfos) {
         Trace.WriteLine($"CalculateSum: {locInfo.Filename}");
         result.TotalLines += locInfo.TotalLines;
         result.CodeLines += locInfo.CodeLines;
     }
     return result;
 }
Exemplo n.º 2
0
 public void DisplayInfoForOneFile(LOCInfo locInfo) {
     Console.WriteLine($"{locInfo.Filename}: {locInfo.TotalLines}, {locInfo.CodeLines}");
 }
Exemplo n.º 3
0
 public void DisplayInfoForSum(LOCInfo locInfo) {
     Console.WriteLine("------");
     Console.WriteLine($"Summe: {locInfo.TotalLines}, {locInfo.CodeLines}");
 }