Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将其中一列是二进制数组(它是 Java UUID)的表映射到 C# 类。
我想读取字节数组并返回 UUID 的字符串表示形式。只是想知道什么是开始的好地方。
如果您已经将其作为字节数组获取,则只需调用new Guid(bytes)获取Guid; 如果您特别需要,可以调用ToString它来将其转换为字符串。(我建议保留它而Guid不是用于诊断。)
new Guid(bytes)
Guid
ToString