这正是LINQ显身手的时候:
string [] stringArray = {"570e3941-ffe5-de11-ba8f-001cf0cd104b", "1f0f34d4-fd4f-e311-8d02-90b11c0b17d6"}; var guidArray = stringArray.Select(g=>Guid.Parse(g)).ToArray();
或者使用Array.ConvertAll
string[] stringArray = {"570e3941-ffe5-de11-ba8f-001cf0cd104b", "1f0f34d4-fd4f-e311-8d02-90b11c0b17d6"}; var guidArray = Array.ConvertAll(stringArray, (string x) => { return new Guid(x); });