CompareTo() public method

public CompareTo ( SqlDecimal value ) : int
value SqlDecimal
return int
コード例 #1
0
ファイル: SqlDecimal.cs プロジェクト: pmq20/mono_forked
        /**
         * Compares two instances of SqlDecimal to determine if the first is less than the second.
         * @param x A SqlDecimal instance
         * @param y A SqlDecimal instance
         * @return A SqlBoolean that is True if the first instance is less than the second instance, otherwise False.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean LessThanOrEqual(SqlDecimal x, SqlDecimal y)
        {
            if (x.IsNull || y.IsNull)
            {
                return(SqlBoolean.Null);
            }

            if (x.CompareTo(y) <= 0)
            {
                return(SqlBoolean.True);
            }

            return(SqlBoolean.False);
        }
コード例 #2
0
ファイル: SqlDecimal.cs プロジェクト: pmq20/mono_forked
        /**
         * Compares two instances of SqlDecimal to determine if the first is greater than the second.
         * @param x A SqlDecimal instance
         * @param y A SqlDecimal instance
         * @return A SqlBoolean that is True if the first instance is greater than the second instance, otherwise False.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y)
        {
            if (x.IsNull || y.IsNull)
            {
                return(SqlBoolean.Null);
            }

            if (x.CompareTo(y) > 0)
            {
                return(SqlBoolean.True);
            }

            return(SqlBoolean.False);
        }
コード例 #3
0
ファイル: SqlDecimal.cs プロジェクト: runefs/Marvin
        /**
         * Compares two instances of SqlDecimal to determine if the first is less than the second.
         * @param x A SqlDecimal instance
         * @param y A SqlDecimal instance
         * @return A SqlBoolean that is True if the first instance is less than the second instance, otherwise False.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean LessThanOrEqual(SqlDecimal x, SqlDecimal y)
        {
            if (x.IsNull || y.IsNull)
                return SqlBoolean.Null;

            if (x.CompareTo(y) <= 0)
                return SqlBoolean.True;

            return SqlBoolean.False;
        }
コード例 #4
0
ファイル: SqlDecimal.cs プロジェクト: runefs/Marvin
        /**
         * Compares two instances of SqlDecimal to determine if the first is greater than the second.
         * @param x A SqlDecimal instance
         * @param y A SqlDecimal instance
         * @return A SqlBoolean that is True if the first instance is greater than the second instance, otherwise False.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y)
        {
            if (x.IsNull || y.IsNull)
                return SqlBoolean.Null;

            if (x.CompareTo(y) > 0)
                return SqlBoolean.True;

            return SqlBoolean.False;
        }