Exemplo n.º 1
0
        protected RecordPerRowFieldSerializer(
            RecordPerRowFieldSerializer parent,
            string fieldName)
        {
            _writersCache  = new List <object>();
            _currentWriter = 0;

            _stream         = parent._stream;
            _writersFactory = parent._writersFactory;
            _fieldNamespace = parent._fieldNamespace.SubName(fieldName);
        }
Exemplo n.º 2
0
        public RecordPerRowFieldSerializer(
            string headerFieldSubNameSeparator,
            string rowFieldSeparator,
            IReadOnlyDictionary <Type, Func <Type[], object> > serializersFactories,
            ISimpleLogger logger)
        {
            _writersCache  = new List <object>();
            _currentWriter = 0;

            _stream         = new RecordPerRowStream(rowFieldSeparator, logger);
            _writersFactory = new RecordPerRowWriterFactory(serializersFactories);
            _fieldNamespace = new NamespaceWithName(headerFieldSubNameSeparator);
        }