public void FillReflectionContents() { SerializationContents.initialize(); for (int i = 0; i < SerializationContents._reflectionRefAndOwnsTypes.Count; i++) { this.Add(SerializationContents._reflectionRefAndOwnsTypes[i]); } }
public ObjectSerializer() { this.Context = SerializationStaticHelpers.StreamingContext; this.WellKnownContents = new SerializationContents(); }
internal GraphReader(TypeBinder binder, ReaderBase reader, ISurrogateSelector selector, StreamingContext context, SerializationContents contents) { this._binder = binder; this._reader = reader; this._readObjects = new Dictionary <ushort, object>(); if (contents == null) { this._readAssemblies = new List <string>(); this._readTypes = new List <string>(); this._stringContents = new List <string>(); } else { this._readAssemblies = new List <string>(contents._AssemblyContents); this._readTypes = new List <string>(contents._TypeContents); this._stringContents = new List <string>(contents._StringContents); } this._selector = selector; this._context = context; }
internal GraphReader(TypeBinder binder, ReaderBase reader, ISurrogateSelector selector, SerializationContents contents) : this(binder, reader, selector, SerializationStaticHelpers.StreamingContext, contents) { }
internal GraphWriter(TypeBinder binder, WriterBase writer, ISurrogateSelector selector, StreamingContext context, SerializationContents contents) { this._binder = binder; this._objIdGenerator = new ObjectIDGenerator(); if (contents == null) { this._writtenAssemblies = new List <string>(); this._writtenTypes = new List <string>(); this._stringContents = new List <string>(); } else { this._writtenAssemblies = new List <string>(contents._AssemblyContents); this._writtenTypes = new List <string>(contents._TypeContents); this._stringContents = new List <string>(contents._StringContents); } this._selector = selector; this._writer = writer; this._context = context; }