Why are there dashes in a .NET GUID?

后端 未结 13 906
傲寒
傲寒 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:00

    If you want to store a guid somewhere, then store it as an array of 16 bytes, not as its textual representation. You will save a lot of space, and the question of hyphens will not arise.

提交回复
热议问题