Equals() public static method

public static Equals ( SqlMoney x, SqlMoney y ) : SqlBoolean
x SqlMoney
y SqlMoney
return SqlBoolean
Beispiel #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);
        }
Beispiel #2
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;
		}