System.Data.SqlTypes.SqlMoney.Equals C# (CSharp) Метод

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

public static Equals ( SqlMoney x, SqlMoney y ) : SqlBoolean
x SqlMoney
y SqlMoney
Результат SqlBoolean
        public static SqlBoolean Equals(SqlMoney x, SqlMoney y)
        {
            return (x == y);
        }

Same methods

SqlMoney::Equals ( object value ) : bool

Usage Example

Пример #1
0
        /**
         * Performs a logical comparison on two instances of SqlMoney to determine if they are equal.
         * @param x A SqlMoney instance.
         * @param y A SqlMoney instance.
         * @return true if the two values are equal, otherwise false.
         * If one of the parameters is null or null value return SqlBoolean.Null.
         */
        public static SqlBoolean Equals(SqlMoney x, SqlMoney y)
        {
            if (x.IsNull || y.IsNull)
            {
                return(SqlBoolean.Null);
            }

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

            return(SqlBoolean.False);
        }
All Usage Examples Of System.Data.SqlTypes.SqlMoney::Equals