提交 4644b5bf 编写于 作者: C CyrusNajmabadi

Inline method

上级 75c9f0d2
......@@ -576,17 +576,12 @@ public Type ReadType()
private Type ReadTypeAfterTag()
=> _binderSnapshot.GetTypeFromId(this.ReadInt32());
private Func<ObjectReader, object> ReadTypeReader()
{
_reader.ReadByte();
return _binderSnapshot.GetTypeReaderFromId(this.ReadInt32());
}
private object ReadObject()
{
var id = _objectReferenceMap.GetNextReferenceId();
var typeReader = this.ReadTypeReader();
_reader.ReadByte();
var typeReader = _binderSnapshot.GetTypeReaderFromId(this.ReadInt32());
// recursive: read and construct instance immediately from member elements encoding next in the stream
var instance = typeReader(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册