/// <summary> /// Determines whether a given type supports arithmetic operations /// </summary> /// <param name="queryScalarType">The type to test for arithmetic operation support</param> /// <returns>A boolean value indicating whether the type supports arithmetic operations</returns> protected bool SupportsArithmeticOperations(QueryScalarType queryScalarType) { foreach (QueryBinaryOperation op in this.arithmeticOperations) { if (!queryScalarType.Supports(op)) { return(false); } } return(true); }
private bool ScalarTypesAreEqualComparable(QueryScalarType firstScalarType, QueryScalarType secondScalarType) { return(firstScalarType.Supports(QueryBinaryOperation.EqualTo, secondScalarType)); }
/// <summary> /// Determines whether a given type supports arithmetic operations /// </summary> /// <param name="queryScalarType">The type to test for arithmetic operation support</param> /// <returns>A boolean value indicating whether the type supports arithmetic operations</returns> protected bool SupportsArithmeticOperations(QueryScalarType queryScalarType) { foreach (QueryBinaryOperation op in this.arithmeticOperations) { if (!queryScalarType.Supports(op)) { return false; } } return true; }