private static void ValidateSizeRestriction(Restriction.SizeRestriction restriction) { if (!RestrictionEvaluator.IsOrderOperation(restriction.Op)) { throw new InvalidRuleException(string.Format("Operation {0} is not supported in SizeRestriction", restriction.Op)); } }
internal static bool IsSupportedOperation(Restriction.RelOp op) { return(RestrictionEvaluator.IsOrderOperation(op) || op == Restriction.RelOp.MemberOfDL); }