如何C#生成的GUID? [英] How does C# generate GUIDs?

查看:245
本文介绍了如何C#生成的GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何生成的GUID?

推荐答案

原题:

如何GUID是产生它的标识?如何将它的输出   如果我用下面的code的Guid G = Guid.NewGuid();

How the Guid is generating it's identifier?? How will be it's output if I use the following code Guid g = Guid.NewGuid();

是否输出将数字和lettters或组合   该数字本身将在那里???

Whether the output will be the combination of numbers and lettters or the numbers alone will be there???

在.NET 的System.Guid 仅仅是一个128位整数(16字节)。数字和字母有什么用它做。您可以使用toString()方法来查看各种人类可读的版本的Guid,其中包括数字0-9和字母AF(重presenting十六进制值),但是这一切都取决于你如何想输出吧。

A .Net System.Guid is just a 128-bit integer (16 bytes). Numbers and letters have nothing to do with it. You can use the ToString() method to see various "human-readable" versions of a Guid, which include numbers 0-9 and letters A-F (representing hex values), but that's all up to you how you want to output it.

这篇关于如何C#生成的GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆