C# - Guid ToString Format

/** * Guid ToString Format **/ Guid guid = Guid.NewGuid(); guid.ToString("N"); /** N 32 位數字︰ 00000000000000000000000000000000 D 以連字號分隔的 32 位數字︰ 00000000-0000-0000-0000-000000000000 B 以連字號、 括號括住分隔的 32 位數字︰ {00000000-0000-0000-0000-000000000000} P 以連字號放在括號分隔的 32 位數字︰ (00000000-0000-0000-0000-000000000000) X 括號,其中第四個值是八個十六進位值的子集,也會括在大括號括住的四個十六進位值︰ {0x00000000、 0x0000、 0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} **/

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.