Why are there dashes in a .NET GUID?

后端 未结 13 905
傲寒
傲寒 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 01:03

    That's just for convenience. GUID consists of 16 bytes which makes up 32 characters in hex text representation. Without hyphens GUIDs are harder to perceive by humans and harder to be recognized as GUIDs and not some random nature 16-byte numbers.

提交回复
热议问题