【发布时间】:2016-08-11 07:38:44
【问题描述】:
我有一个有 5 名成员的班级。 像这样:
class Demo
{
public int id;
public string name;
public string color;
public int 4th_member;
public int 5th_member;
}
我有这个班级的名单。
对于4th_member 和5th_member,我有2 个带有int 键和int 值的字典列表。 (第 4 次第 1 次,第 5 次第 2 次)
我想根据字典更新这些成员。
比如,如果字典的 key = id,则更新 4th_member 为 Dictionary 的值。
我希望我的问题足够清楚。
【问题讨论】:
-
当首字母缩写代表查询语言 ...时,为什么还要坚持使用linq