提交 75c9f0d2 编写于 作者: C CyrusNajmabadi

Inline method

上级 57eca799
......@@ -748,16 +748,11 @@ private void WriteObject(object instance, IObjectWritable instanceAsWritableOpt)
private void WriteObjectWorker(IObjectWritable writable)
{
// emit object header up front
this.WriteObjectHeader(writable);
writable.WriteTo(this);
}
private void WriteObjectHeader(IObjectWritable instance)
{
_objectReferenceMap.Add(instance);
_objectReferenceMap.Add(writable);
_writer.Write((byte)EncodingKind.Object);
this.WriteKnownType(instance.GetType());
this.WriteKnownType(writable.GetType());
writable.WriteTo(this);
}
private static Exception NoSerializationTypeException(string typeName)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册