/// <summary> /// 更新字典的方法 /// </summary> /// <param name="mark">符號</param> /// <param name="priority">優先度</param> /// <param name="func">委派</param> public static void UpdateBinary(string mark, int priority, Func <decimal, decimal, decimal> func) { BinaryDic.Add(mark, new BinaryOperator(priority, func)); }
/// <summary> /// 更新字典的方法 /// </summary> /// <param name="mark">符號</param> /// <param name="binaryOperator">雙元運算子</param> public static void UpdateBinary(string mark, BinaryOperator binaryOperator) { BinaryDic.Add(mark, binaryOperator); }