Why are there dashes in a .NET GUID?

后端 未结 13 910
傲寒
傲寒 2020-12-03 00:11

Why are there dashes in a .NET GUID? Are there dashes in most implementations of a GUID, or is it just a Microsoft thing?

Signed,

741ecf77-9c92-4435-8e6b-859

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 00:52

    The GUID is really just a number. The hyphens show you how the various components are broken down but aren't really part of the number. It's like an IP address - you can store a 32-bit number, or you can store a string with dots in it, they are equivalent.

提交回复
热议问题