Protobuf-Net:如何序列化guid?

发布于 2024-09-17 18:50:52 字数 50 浏览 3 评论 0原文

在 protobuf-net 中序列化 Guid 是否有首选方法?好像是不支持的类型?

Is there a preferred method for serializing Guids in protobuf-net? It doesn't seem to be a supported type?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

会傲 2024-09-24 18:50:52

对延迟表示歉意 - 假期等。在 protobuf-net 中,Guid 应该可以正常工作 - 它几乎被视为 byte[]。确认一下:你的意思是protobuf-net(一个具体的实现)?或者一般只是 protobuf(它不是核心类型)。

Apologies for the delay - holiday etc. In protobuf-net, Guid should work fine - it is treated pretty much as a byte[]. To confirm: do you mean protobuf-net (a specific implementation)? Or just protobuf generally (where it isn't a core type).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文