public static string ToTsv <T>(this IEnumerable <T> collectionToSerialize, bool includeHeaders = true) where T : class { var data = string.Join("", collectionToSerialize.Select(x => x.ToTsvDataRow())); return(includeHeaders ? string.Concat(TsvFormatter.GetHeaderRow(typeof(T)), data) : data); }
public static string ToTsvHeaderRow <T>(this T objToSerialize) where T : class { return(TsvFormatter.GetHeaderRow(typeof(T))); }