This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21340|Reply: 0

[Source] C# GUID output

[Copy link]
Posted on 11/6/2016 9:12:43 AM | | | |


Edit the code style:
Guid GUID = Guid.NewGuid();
System.Console.WriteLine(GUID. ToString());
System.Console.WriteLine(GUID. ToString("D"));
System.Console.WriteLine(GUID. ToString("N"));
System.Console.WriteLine(GUID. ToString("P"));
System.Console.WriteLine(GUID. ToString("B"));
System.Console.WriteLine(GUID. ToString("X"));
Output Result Format:
e8b1ab23-caed-4ffb-b1dd-5ec126cb8278
e8b1ab23-caed-4ffb-b1dd-5ec126cb8278
e8b1ab23caed4ffbb1dd5ec126cb8278
(e8b1ab23-caed-4ffb-b1dd-5ec126cb8278)
{e8b1ab23-caed-4ffb-b1dd-5ec126cb8278}
{0xe8b1ab23,0xcaed,0x4ffb,{0xb1,0xdd,0x5e,0xc1,0x26,0xcb,0x82,0x78}}





Previous:asp.net MVC utilizes Quartz.Net plugins to execute scheduled tasks
Next:asp.net mvc to get the client IP address

Related Posts

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com