在 protobuf-net 中序列化类型 class?

Serializing the Type class in protobuf-net?

在 C# 中序列化类型 class 有什么特别之处吗?我得到通用的:

An exception of type 'System.InvalidOperationException' occurred in protobuf-net.dll but was not handled in user code

"No serializer defined for type: System.Object"}

[ProtoMember(1)]
public Type DataType { get; set; }

像这样。

改为序列化 Type 的完全限定(或不太完全限定,如果适用)名称。我认为序列化静态类型定义是不合适的。