/// <summary> /// Returns whether the given type is supported by the operator /// </summary> /// <param name="type">The type to check for, must be either the same or be castable to the target type</param> /// <param name="side">Which side of the operator to check, left or right</param> public bool SupportsType(Type type, ConditionParameterSide side) { if (type == null) { return(true); } if (side == ConditionParameterSide.Left) { return(LeftSideType.IsCastableFrom(type)); } return(RightSideType != null && RightSideType.IsCastableFrom(type)); }
public List <BaseConditionOperator> GetConditionOperatorsForType(Type type, ConditionParameterSide side) { return(ConditionOperatorStore.GetForType(type, side).Select(r => r.ConditionOperator).ToList()); }