コード例 #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);
            }
        }
コード例 #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;
        }
コード例 #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;
        }