/// <summary> /// Tries to get the rule with the specified name by a lookup in the first table, followed by a lookup in the second table. /// </summary> /// <param name="name">Name of the rule to get.</param> /// <param name="rule">Rule with the specified name.</param> /// <returns>true if a rule with the specified name was found; otherwise, false.</returns> public override bool TryGetRule(string name, out Rule <TInput, TOutput, TContext> rule) { if (_first.TryGetRule(name, out rule)) { return(true); } return(_second.TryGetRule(name, out rule)); }
/// <summary> /// Tries to get the rule with the specified name by a lookup in the base table first, followed by a lookup in the extension table. /// </summary> /// <param name="name">Name of the rule to get.</param> /// <param name="rule">Rule with the specified name.</param> /// <returns>true if a rule with the specified name was found; otherwise, false.</returns> public override bool TryGetRule(string name, out Rule <TInput, TOutput, TContext> rule) { if (_baseTable.TryGetRule(name, out rule)) { return(true); } return(_extension.TryGetRule(name, out rule)); }
/// <summary> /// Tries to get the rule with the specified name from the base table. /// </summary> /// <param name="name">Name of the rule to get.</param> /// <param name="rule">Rule with the specified name.</param> /// <returns>true if a rule with the specified name was found; otherwise, false.</returns> public override bool TryGetRule(string name, out Rule <TInput, TOutput, TContext> rule) => _baseTable.TryGetRule(name, out rule);