/// <summary> /// Resets the serialization context completely to baseline status, as if its constructor has just been called. /// This allows complete reuse of a serialization context, with all of its internal reference buffers. /// </summary> public void ResetToDefault() { if (!object.ReferenceEquals(this.config, null)) { this.config.ResetToDefault(); } this.internalReferenceIdMap.Clear(); this.IndexReferenceResolver = null; this.GuidReferenceResolver = null; this.StringReferenceResolver = null; this.binder = null; }