我有一个名为 GetContentPageToValueVo
的函数,它接受类型为 IEnumerable<Guid>
的参数,这里的 locations 和 services 是 list<string>
类型,那么如何将这个参数行转换为 IEnumerable 类型?我的 locations 列表来自 solr,并且以字符串格式具有有效的 GUID。
Location = ScHelper.Instance().GetContentPageToValueVo(x.Locations),
Service = ScHelper.Instance().GetContentPageToValueVo(x.Services)