public static Get ( this m, string>.Dictionary |
||
m | this | |
names | string>.Dictionary | |
name | string | |
return | int |
public static int Get(this Marking m,
Dictionary<int, string> names,
string name)
{
int idx = names.Where(x => x.Value == name).Select(x => x.Key).Single();
return (int)m[idx];
}