TestProject1.UtilityExtensions.Set C# (CSharp) Method

Set() public static method

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