C# List.Select方法代码

companyList.Select(o => new CompanyVM
     {
         Id = o.Id,
         Name = o.Name
     }).ToList();
["randCode"] = verifyPoints.Select(s => s.X + "," + s.Y).JoinAsString(",")
 public List GetModelList(List tags)
 {
     return tags.Select(GetModel).ToList();
 }
 
public List GetModelList(List users)
 {
     return users.Select(GetModel).ToList();
 }
xxx.Select(i => new KeyValuePair(i.Id, i.Name)).ToList();
List monsterAIs = monsters.Select(x => new MonsterAI(x, surroundings)).ToList();
return domainEvents.Select(domainEvent => domainEvent.GetMessage(accounts[domainEvent.AccountId])).ToList();

你可能感兴趣的:(C#,c#,list)