产生一个不会重复的编号
using System;
namespace _096_GUID
{
class Program
{
static void Main(string[] args)
{
//产生一个不会重复的编号
//Guid.NewGuid();
Console.WriteLine(Guid.NewGuid().ToString());
Console.WriteLine(Guid.NewGuid().ToString());
Console.WriteLine(Guid.NewGuid().ToString());
Console.WriteLine(Guid.NewGuid().ToString());
Console.WriteLine(Guid.NewGuid().ToString());
Console.ReadKey();
}
}
}
96071b6e-8082-4db8-a6f0-2fb913ca2123
8a1a0aba-dd0f-4a2c-b5cf-a8162c105360
59cb39af-726e-4edf-b777-535f49eebfa6
560c048c-2b81-49ea-aeaa-1c3d6647eb7a
5223dc9f-3961-44e1-9cbd-d5977943ea44