Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
        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;
        }