/// <summary>Whether the condition matches.</summary> /// <param name="context">The condition context.</param> public bool IsMatch(ConditionContext context) { foreach (string conditionValue in context.GetValues(this.Key)) { if (this.Values.Contains(conditionValue)) { return(true); } } return(false); }
/// <summary>Whether the condition matches.</summary> /// <param name="context">The condition context.</param> public bool IsMatch(ConditionContext context) { return(context .GetValues(this.Key) .Any(p => this.Values.Contains(p))); }