protected RecordPerRowFieldSerializer( RecordPerRowFieldSerializer parent, string fieldName) { _writersCache = new List <object>(); _currentWriter = 0; _stream = parent._stream; _writersFactory = parent._writersFactory; _fieldNamespace = parent._fieldNamespace.SubName(fieldName); }
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); }