Equals() публичный статический Метод

public static Equals ( SqlBinary x, SqlBinary y ) : SqlBoolean
x SqlBinary
y SqlBinary
Результат SqlBoolean
        /**
         * Compares two instances of SqlBinary to determine if they are equal.
         * @param x A SqlBinary instance
         * @param y A SqlBinary instance
         * @return A SqlBoolean that is True if the two instances are not equal or False if the two instances are equal.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean NotEquals(SqlBinary x, SqlBinary y)
        {
            if (x.IsNull || y.IsNull)
            {
                return(SqlBoolean.Null);
            }

            if (x.Equals(y))
            {
                return(SqlBoolean.False);
            }

            return(SqlBoolean.True);
        }
Пример #2
0
        /**
         * Compares two instances of SqlBinary to determine if they are equal.
         * @param x A SqlBinary instance
         * @param y A SqlBinary instance
         * @return A SqlBoolean that is True if the two instances are not equal or False if the two instances are equal.
         * If either instance of SqlDouble is null, the Value of the SqlBoolean will be Null.
         */
        public static SqlBoolean NotEquals(SqlBinary x, SqlBinary y)
        {
            if (x.IsNull || y.IsNull)
                return SqlBoolean.Null;

            if (x.Equals(y))
                return SqlBoolean.False;

            return SqlBoolean.True;
        }