Is there a better way to cast this list of guid strings to guids using linq:
public static IList<Guid> ToGuidList(this IList<string> guids)
{
IList<Guid> guidList = new List<Guid>();
foreach(var item in guids)
{
guidList.Add(new Guid(item));
}
return guidList;
}
I looked at:
guids.Cast<Guid>().ToList()
but that didn't seem to be the trick.
Any tips appreciated.