internal HeaderedFileWriter(HeaderedFile file)
 {
     _file = file;
     _file.CurrentWriter = this;
     _context            = file.Context;
     _description        = _context.Description;
 }
 internal HeaderedFileWriter([NotNull] HeaderedFile file)
 {
     _file = file;
     _file.CurrentWriter = this;
     _context = file.Context;
     _description = _context.Description;
 }
        public HeaderdFileContext([NotNull] SerializationContext original, [NotNull] FileDescription description)
            : base(original)
        {
            _description = description;

            _file = new HeaderedFile(_description);
            if (original.SerializerMode == SerializerMode.Deserialize)
                _file.Read(TextReader);

            if (original.SerializerMode == SerializerMode.Serialize)
                _file.CreateWriter();
        }