using System; namespace TTest { class Program { static void Main(string[] args) { for (int i = 0; i < 100; i++) { Guid guid = Guid.NewGuid(); //支持的参数格式化ToString("N"), "B", "P", "X" Console.WriteLine(guid.ToString()); } Console.Read(); } } }
运行测试