TestProject1.UtilityExtensions.Get C# (CSharp) Method

Get() public static method

public static Get ( this m, string>.Dictionary names, string name ) : int
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];
        }
UtilityExtensions