开发者

What's the meaning of the hashes at Enumerations?

I use GhostDoc for the XML-Docum开发者_StackOverflow中文版entation of my code, and it has a neat "auto-document"-function I use quite often, so now I used it on an enumeration and it came up with some strange hash-code I don't quite understand.

What is it for? Looks sort of like this:

{35A90EBF-F421-44A3-BE3A-47C72AFE47FE}


I just discovered the same, and I think it is a bug in GhostDoc. Funningly enough, it only happens (in my machine) when your enum values are all in the same line, i.e., something like this:

 enum GhostDocBug {
     Funny, Guid, Appearing
  }

If you put each value in its own line, it goes away


this is a String representation of a Guid. See the System.Guid type for more details.

Guids are essentially random codes (some types of Guids depend on MAC-Address or time though) which is so unlikely to occur again in this corner of SpaceTime that is can be considered to be unique in all Creation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜