Пример #1
0
        public void Setup()
        {
            consumer = new Consumer();
            record   = new DataRecord();

            // warmup for static constructor
            consumer.Consume(PrimitiveFillerBefore.GetReaderValue <int>(record, 0));
            // to be fair
            consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <int>(record, 0));
        }
Пример #2
0
 public void Before()
 {
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <int>(record, 0));
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <char>(record, 0));
     consumer.Consume <decimal>(PrimitiveFillerBefore.GetReaderValue <decimal>(record, 0));
     consumer.Consume <DateTime>(PrimitiveFillerBefore.GetReaderValue <DateTime>(record, 0));
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <bool>(record, 0));
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <int>(record, 0));
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <long>(record, 0));
     consumer.Consume(PrimitiveFillerBefore.GetReaderValue <byte>(record, 0));
 }