public static string GetValueSafe(PairedEndPeakFinder toReportOn, PropertyInfo FI) { try { return(FI.GetValue(toReportOn).ToString()); } catch { return("NULL"); } }
public static string GetReportValues(PairedEndPeakFinder toReportOn) { return(String.Join(",", outputValues.Select(x => GetValueSafe(toReportOn, x)).ToArray())); }
public PairedEndDeletionFinderReport(PairedEndPeakFinder toReportOn) : base(AlgorithmResult.Success) { this.DataLineForCSV = GetReportValues(toReportOn); this.HeaderLineForCSV = CreateHeaderLine(); }