Example #1
0
 public void WriteObjectGraph(BinaryWriter writer, object obj, Header[] headers)
 {
     this._pendingObjects.Clear();
     if (headers != null)
     {
         this.QueueObject(headers);
     }
     this.QueueObject(obj);
     this.WriteQueuedObjects(writer);
     ObjectWriter.WriteSerializationEnd(writer);
     this._manager.RaiseOnSerializedEvent();
 }