示例#1
0
        static void Main(string[] args)
        {
            var employees = new List <Employee>()
            {
                new Employee
                {
                    Date   = "2020-04-29",
                    Name   = "Roshan",
                    Mobile = "9558243312",
                    MerchantControlLabel = "Date Of Birth",
                    FormValue            = "2010-05-26"
                },
                new Employee
                {
                    Date   = "2020-04-29",
                    Name   = "Roshan",
                    Mobile = "9558243312",
                    MerchantControlLabel = "Recent exposure to Covid-19 Patient OR Family History",
                    FormValue            = "No"
                }, new Employee
                {
                    Date   = "2020-04-29",
                    Name   = "Roshan",
                    Mobile = "9558243312",
                    MerchantControlLabel = "Reason for Visit",
                    FormValue            = "Burning Urination"
                }, new Employee
                {
                    Date   = "2020-04-29",
                    Name   = "Roshan",
                    Mobile = "9558243312",
                    MerchantControlLabel = "Address",
                    FormValue            = "Address of patient"
                },
            };

            ExportData.ExportCsv(employees, "employees_Dynamic");
        }