Example #1
0
 internal static void RegisterCsvSerializer<T>()
 {
     CsvSerializer<T>.WriteFn();
     CsvSerializer<T>.WriteObject(null, null);
     CsvWriter<T>.Write(null, default(IEnumerable<T>));
     CsvWriter<T>.WriteRow(null, default(T));
 }
Example #2
0
        public static void InitAot <T>()
        {
            CsvSerializer <T> .WriteFn();

            CsvSerializer <T> .WriteObject(null, null);

            CsvWriter <T> .Write(null, default(IEnumerable <T>));

            CsvWriter <T> .WriteRow(null, default(T));

            CsvWriter <T> .WriteObject(null, default(IEnumerable <T>));

            CsvWriter <T> .WriteObjectRow(null, default(IEnumerable <T>));

            CsvReader <T> .ReadRow(null);

            CsvReader <T> .ReadObject(null);

            CsvReader <T> .ReadObjectRow(null);

            CsvReader <T> .ReadStringDictionary(null);
        }
Example #3
0
 public static void WriteCsv <T>(this TextWriter writer, IEnumerable <T> records)
 {
     CsvWriter <T> .Write(writer, records);
 }