我有以下空字典
Dictionary<Guid, string> appTypeMap = new Dictionary<Guid, string>();
和以下列表:
List<ApplicationType> allApplicationTypes = _applicationTypeService.GetAll()
应用类型描述如下:
public class ApplicationType
{
public Guid id {get; set;}
public String name {get; set;}
}
我想使用 LINQ 填充字典。
我怎么做?谢谢。