public void AddBinder(TypeBinder binder) { if (!this._binderList.Contains(binder)) { this._binderList.Add(binder); } }
public SerializationContents(TypeBinder binder) { this._AssemblyContents = new List <string>(); this._TypeContents = new List <string>(); this._StringContents = new List <string>(); this.TypeBinder = binder; }
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 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; }
internal GraphReader(TypeBinder binder, ReaderBase reader, ISurrogateSelector selector, SerializationContents contents) : this(binder, reader, selector, SerializationStaticHelpers.StreamingContext, contents) { }
internal GraphReader(TypeBinder binder, ReaderBase reader, ISurrogateSelector selector, StreamingContext context) : this(binder, reader, selector, context, null) { }
internal GraphWriter(TypeBinder binder, WriterBase writer, ISurrogateSelector selector, StreamingContext context) : this(binder, writer, selector, context, null) { }
internal GraphWriter(TypeBinder binder, WriterBase writer, ISurrogateSelector selector) : this(binder, writer, selector, SerializationStaticHelpers.StreamingContext) { }