/// <summary> /// Returns true if the condition is satisfied in the given context. /// </summary> /// <param name="context">The condition evaluation context.</param> /// <returns>True if the condition is satisfied.</returns> /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is null.</exception> public bool Evaluate(ConditionContext context) { if (context == null) { throw new ArgumentNullException("context"); } return(constraint.Evaluate(context)); }
public override bool Evaluate(ConditionContext context) { return(context.HasProperty(@namespace, identifier)); }
public override bool Evaluate(ConditionContext context) { return(left.Evaluate(context) || right.Evaluate(context)); }
public abstract bool Evaluate(ConditionContext context);
public override bool Evaluate(ConditionContext context) { return context.HasProperty(@namespace, identifier); }
public override bool Evaluate(ConditionContext context) { return left.Evaluate(context) || right.Evaluate(context); }
/// <summary> /// Returns true if the condition is satisfied in the given context. /// </summary> /// <param name="context">The condition evaluation context.</param> /// <returns>True if the condition is satisfied.</returns> /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is null.</exception> public bool Evaluate(ConditionContext context) { if (context == null) throw new ArgumentNullException("context"); return constraint.Evaluate(context); }