Guid.Empty [英] Guid.Empty
问题描述
我使用Guid.Empty值(00000000-0000-0000-0000-000000000000)来表示
表示特殊含义。问题是我不知道是否有一个像Guid.NewGuid()这样的命令会产生Guid.Empty值的机会
这可能是可能的还是00000000-0000-0000-0000-000000000000 Guid
保留还是类似的东西?
谢谢。
"雷" <无**** @ nospam.com>在消息中写道
新闻:好的************* @ TK2MSFTNGP10.phx.gbl ...我正在使用Guid。空值(00000000-0000-0000-0000-000000000000)表示特殊含义。问题是我不知道像Guid.NewGuid()这样的命令是否有可能生成Guid.Empty值,这是否可能或者是
" 00000000-0000-0000-0000-000000000000" Guid保留或类似的东西?
为什么不使用自定义GUID作为您的特殊含义?
与其他GUID发生冲突的可能性是
非常小。请记住,GUID常用的概率很低
-
- 拉里布拉斯菲尔德
电子邮件:做*** ********************@hotmail.com
以上观点可能仅属于我。
" 00000000-0000-0000-0000-000000000000"实际上是我的定制Guid。
" Larry Brasfield" <做******** @ hotmail.com>在消息中写道
news:e6 ************* @ TK2MSFTNGP15.phx.gbl ..." Rene" <无**** @ nospam.com>在消息中写道
新闻:好的************* @ TK2MSFTNGP10.phx.gbl ...我使用的是Guid.Empty值(" ; 00000000-0000-0000-0000-000000000000")
代表一种特殊的含义。问题是,我不知道是否有可能像Guid.NewGuid()这样的命令会生成一个Guid.Empty值,这是否可能或者是
00000000-0000-0000-0000-000000000000保留Guid或类似
的东西?
为什么不使用自定义GUID来达到你的特殊含义?
与其他一些GUID发生冲突的可能性是什么?非常小。请记住,概率很低是GUID常用的全部原因。
-
--Larry Brasfield
电子邮件:做******************* **** @ hotmail.com
以上观点可能仅属于我。
[保留优先权的顶级帖子]
为了最大化与其他一些
非随机生成的GUID发生碰撞的可能性,你不能选择
a比你建议的价值更好。
-
- 拉里布拉斯菲尔德
电子邮件:做**************** *******@hotmail.com
以上观点可能仅属于我。
" Rene" <无**** @ nospam.com>在消息新闻中写道:OI ************** @ TK2MSFTNGP09.phx.gbl ..." 00000000-0000-0000-0000-000000000000"实际上是我的定制Guid。
Larry Brasfield <做******** @ hotmail.com>在留言新闻中写道:e6 ************* @ TK2MSFTNGP15.phx.gbl ..." Rene" <无**** @ nospam.com>在消息中写道
新闻:好的************* @ TK2MSFTNGP10.phx.gbl ...我使用的是Guid.Empty值(" ; 00000000-0000-0000-0000-000000000000)表示特殊含义。问题是,我不知道像Guid.NewGuid()这样的命令是否有可能生成Guid.Empty值,这是否可行或
是" 00000000-0000-0000-0000-000000000000" Guid保留还是类似的东西?
为什么不使用自定义GUID来表达你的特殊含义?
与其他GUID发生冲突的可能性非常大小。请记住,概率很低是GUID常用的全部原因。
I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to
represent a special meaning. The problem is that I don''t know if there is a
chance that a command like "Guid.NewGuid()"would generate a Guid.Empty value
could this be possible or is the "00000000-0000-0000-0000-000000000000" Guid
reserved or something like that?
Thank you.
"Rene" <no****@nospam.com> wrote in message
news:Ok*************@TK2MSFTNGP10.phx.gbl...I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to represent a special meaning. The problem is that I
don''t know if there is a chance that a command like "Guid.NewGuid()"would generate a Guid.Empty value could this be possible or is
the "00000000-0000-0000-0000-000000000000" Guid reserved or something like that?
Why not use a custom GUID for your special meaning?
The chances of a collision with some other GUID are
very very small. Remember, that low probability is
the whole reason GUID are in common use.
--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.
"00000000-0000-0000-0000-000000000000" is in fact my custom Guid.
"Larry Brasfield" <do***********************@hotmail.com> wrote in message
news:e6*************@TK2MSFTNGP15.phx.gbl..."Rene" <no****@nospam.com> wrote in message
news:Ok*************@TK2MSFTNGP10.phx.gbl...I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000")
to represent a special meaning. The problem is that I don''t know if there
is a chance that a command like "Guid.NewGuid()"would generate a
Guid.Empty value could this be possible or is the
"00000000-0000-0000-0000-000000000000" Guid reserved or something like
that?
Why not use a custom GUID for your special meaning?
The chances of a collision with some other GUID are
very very small. Remember, that low probability is
the whole reason GUID are in common use.
--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.
[top-posting maintained for inclarity]
To maximize the probability of a collision with some other
non-randomly generated "GUID", you could not choose
a better value than the one you propose.
--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.
"Rene" <no****@nospam.com> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl..."00000000-0000-0000-0000-000000000000" is in fact my custom Guid.
"Larry Brasfield" <do***********************@hotmail.com> wrote in message news:e6*************@TK2MSFTNGP15.phx.gbl..."Rene" <no****@nospam.com> wrote in message
news:Ok*************@TK2MSFTNGP10.phx.gbl...I am using the Guid.Empty value ("00000000-0000-0000-0000-000000000000") to represent a special meaning. The problem is that I
don''t know if there is a chance that a command like "Guid.NewGuid()"would generate a Guid.Empty value could this be possible or
is the "00000000-0000-0000-0000-000000000000" Guid reserved or something like that?
Why not use a custom GUID for your special meaning?
The chances of a collision with some other GUID are
very very small. Remember, that low probability is
the whole reason GUID are in common use.
这篇关于Guid.Empty的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!