Пример #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 After()
 {
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <int>(record, 0));
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <char>(record, 0));
     consumer.Consume <decimal>(PrimiteTypeFillerAfter.GetReaderValue <decimal>(record, 0));
     consumer.Consume <DateTime>(PrimiteTypeFillerAfter.GetReaderValue <DateTime>(record, 0));
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <bool>(record, 0));
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <int>(record, 0));
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <long>(record, 0));
     consumer.Consume(PrimiteTypeFillerAfter.GetReaderValue <byte>(record, 0));
 }