Esempio n. 1
0
        public void Initialize()
        {
            WideRow.Initialize();

            StaticConfig  = Configuration.For <WideRow>();
            DynamicConfig = Configuration.ForDynamic();

            StaticRows                = GetStaticRows(RowSet);
            DynamicRows_Static        = GetRows(RowSet, "Static");
            DynamicRows_Cesil         = GetRows(RowSet, "Cesil");
            DynamicRows_ExpandoObject = GetRows(RowSet, nameof(ExpandoObject));
            DynamicRows_Custom        = GetRows(RowSet, "Custom");
        }
        public void Initialize()
        {
            WideRow.Initialize();

            if (StaticConfig != null && DynamicConfig != null)
            {
                return;
            }

            DynamicConfig = Configuration.ForDynamic();
            StaticConfig  = Configuration.For <WideRow>();

            CSV = MakeCSV();
        }
Esempio n. 3
0
        public void Initialize()
        {
            WideRow.Initialize();

            // Configure Cesil
            {
                var opts = Options.CreateBuilder(Options.Default).WithWriteTrailingRowEnding(WriteTrailingRowEnding.Always).ToOptions();
                CesilConfig = Configuration.For <WideRow>(opts);
            }

            // Configure CsvHelper
            {
                CsvHelperConfig = new CsvHelper.Configuration.CsvConfiguration(CultureInfo.InvariantCulture);
                CsvHelperConfig.RegisterClassMap <WideRowMapping>();
            }

            CSV = MakeCSV();

            DoCsvHelper = GetReadFunc(nameof(CsvHelper));
            DoCesil     = GetReadFunc(nameof(Cesil));
        }