Ejemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public BaseTypesByteExtractor()
        {
            _collection = new ByteExtractorsCollection();

            var primitiveByteExtractor = new PrimitiveByteExtractor();

            _collection.Add(primitiveByteExtractor);
            _collection.Add(new StringByteExtractor());
            _collection.Add(new DateTimeByteExtractor());
            _collection.Add(new EnumByteExtractor(primitiveByteExtractor));
            _collection.Add(new EnumerableByteExtractor(_collection));
        }
Ejemplo n.º 2
0
 public EnumByteExtractor(PrimitiveByteExtractor primitiveByteExtractor)
 {
     _primitiveByteExtractor = primitiveByteExtractor;
 }