C# string类型转换Guid类型
static void Main(string[] args)
{
string str = "37737B9B-382D-48C0-898D-DC643F5E7E35";
//string str = "{37737B9B-382D-48C0-898D-DC643F5E7E35}";
// 方式1
Guid g1 = new Guid(str);
// 方式2, .net framework 4.0 以上
Guid g2 = Guid.Parse(str);
Console.Read();
}