Why are there dashes in a .NET GUID?

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

    The hyphens are used to separate each number

    E93416C5-9377-4A1D-8390-7E57D439C9E7

    Hex digits  Description
    8           Data1
    4           Data2
    4           Data3
    4           Initial two bytes from Data4
    12          Remaining six bytes from Data4
    

提交回复
热议问题