public void UpdateFunctionsList() { var functions = FunctionBase.GetSupportedFunctions(); foreach (var func in functions) { foreach (var updFunc in UsedFunctions) { if (!updFunc.SupportedFunctions.Any(f => f.Name == func.Name)) { updFunc.SupportedFunctions.Add(func); } } foreach (var updRule in StartRules) { if (!updRule.SupportedFunctions.Any(f => f.Name == func.Name)) { updRule.SupportedFunctions.Add(func); } } } }