Beispiel #1
0
        /// <summary>
        /// Parse 'WHERE' phrase value.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns>Parsed value.</returns>
        protected override object TryGetFilterValue(string value)
        {
            long retVal;

            if (!Int64.TryParse(value, out retVal))
            {
                throw APRptFilterParseException.InvalidNumber(typeof(Int64));
            }

            return(retVal);
        }
Beispiel #2
0
        /// <summary>
        /// Parse 'WHERE' phrase value.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns>Parsed value.</returns>
        protected override object TryGetFilterValue(string value)
        {
            double retVal;

            if (!Double.TryParse(value, out retVal))
            {
                throw APRptFilterParseException.InvalidNumber(typeof(Double));
            }

            return(retVal);
        }
Beispiel #3
0
        /// <summary>
        /// Parse 'WHERE' phrase value.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns>Parsed value.</returns>
        protected override object TryGetFilterValue(string value)
        {
            ushort retVal;

            if (!UInt16.TryParse(value, out retVal))
            {
                throw APRptFilterParseException.InvalidNumber(typeof(UInt16));
            }

            return(retVal);
        }