コード例 #1
0
 internal HeaderedFileWriter([NotNull] HeaderedFile file)
 {
     _file = file;
     _file.CurrentWriter = this;
     _context = file.Context;
     _description = _context.Description;
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public HeaderedFile(FileDescription description)
 => Context = new FileContext(description);
コード例 #4
0
 internal FileContext([NotNull] FileDescription description)
 => Description = (FileDescription)description.Clone();
コード例 #5
0
 private FileDescription(FileDescription parent)
 {
     _keys = new HashSet<string>(parent.Keys);
 }