public static void WriteCsVintoFile <T>(string filepath, T list, ref bool blHeader) { if (list != null) { string strCsv = ExportCsv.ToCsv(",", list, ref blHeader); AppendTextintoFile(filepath, strCsv); } }
public static void WriteCsVintoFile <T>(string filepath, ref List <T> list, ref bool blHeader) { if (list.Count > 0) { string strCsv = ExportCsv.ToCsv(",", list, ref blHeader); AppendTextintoFile(filepath, strCsv); } list.TrimExcess(); //list = null; }
public static void WriteCsVintoFile <T>(string filepath, ref List <T> list, ref bool blHeader) { if (list.Count > 0) { //MasterPageBase[] objaray= listmasterpagebase.ToArray(); string strCsv = ExportCsv.ToCsv(",", list, ref blHeader); AppendTextintoFile(filepath, strCsv); } list.TrimExcess(); list = null; }