/// <summary> /// Returns whether the given type is supported by the operator /// </summary> public bool SupportsType(Type type) { if (type == null) { return(true); } return(CompatibleTypes.Any(t => t.IsCastableFrom(type))); }
protected bool ValidCombine(ExpressionValue expressionValue, ExpressionOperator op) { return(CompatibleTypes.Contains(expressionValue.ExpressionType) && CompatibleOperators.Contains(op)); }