public static void PrintCoverageInfo(CoverageInfo finalCovInfo) { CoverageDS coverageDS = finalCovInfo.BuildDataSet(); //Get All Source files from coverage file List <string> sourceFiles = coverageDS.GetSourceFiles(); foreach (string sourceFile in sourceFiles) { //No need for doing this anymore /*List<CoverageDSPriv.LinesRow> allLines = DataRowToList(coverageDS, sourceFile); * * IList<LineCoverageInfo> mergedInfos = CoverageDS.MergeFileLines(allLines); */ //this is the new API which you can use for each source to get correct coverage info. IList <LineCoverageInfo> sortInfo = CoverageDS.GetSourceFileLineCoverageInfo(coverageDS, sourceFile); AnalyzeMergedLines(sortInfo); } }