分享

c#中uuid的几种形式

 斗进馆 2014-04-03

http://msdn.microsoft.com/en-us/library/97af8hh4.aspx

 

Guid.ToString Method (String)

The following table shows the accepted format specifiers for the format parameter. "0" represents a digit; hyphens ("-"), braces ("{", "}"), and parentheses ("(", ")") appear as shown.


Specifier
 Format of return value
 
N
 32 digits:

00000000000000000000000000000000
 
D
 32 digits separated by hyphens:

00000000-0000-0000-0000-000000000000
 
B
 32 digits separated by hyphens, enclosed in braces:

{00000000-0000-0000-0000-000000000000}
 
P
 32 digits separated by hyphens, enclosed in parentheses:

(00000000-0000-0000-0000-000000000000)
 
X
 Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces:

{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多