예제 #1
0
        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);
        }
예제 #2
0
 public static string ToTsvHeaderRow <T>(this T objToSerialize) where T : class
 {
     return(TsvFormatter.GetHeaderRow(typeof(T)));
 }