Example #1
0
        /// <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);
        }
Example #2
0
 private bool ScalarTypesAreEqualComparable(QueryScalarType firstScalarType, QueryScalarType secondScalarType)
 {
     return(firstScalarType.Supports(QueryBinaryOperation.EqualTo, secondScalarType));
 }
Example #3
0
        /// <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;
        }