Код: Выделить всё
class MyObj {
int Id;
string Name;
string Location;
}
IEnumerable list;
Код: Выделить всё
list.ToDictionary(x => x.Name);
Код: Выделить всё
class MyObj {
int Id;
string Name;
string Location;
}
IEnumerable list;
Код: Выделить всё
list.ToDictionary(x => x.Name);