Guid guid = Guid.NewGuid(); |
// 10244798-9a34-4245-b1ef-9143f9b1e68a |
Console.WriteLine(guid.ToString( "D" )); //默认 |
// 102447989a344245b1ef9143f9b1e68a |
Console.WriteLine(guid.ToString( "N" )); //无符号 |
// {10244798-9a34-4245-b1ef-9143f9b1e68a} |
Console.WriteLine(guid.ToString( "B" )); //大括号 |
// (10244798-9a34-4245-b1ef-9143f9b1e68a) |
Console.WriteLine(guid.ToString( "P" )); //圆括号 |
by: 发表于:2018-01-24 09:45:46 顶(0) | 踩(0) 回复
??
回复评论