System.Data.SqlTypes.SqlSingle.Equals C# (CSharp) Méthode

Equals() public static méthode

public static Equals ( SqlSingle x, SqlSingle y ) : SqlBoolean
x SqlSingle
y SqlSingle
Résultat SqlBoolean
        public static SqlBoolean Equals(SqlSingle x, SqlSingle y)
        {
            return (x == y);
        }

Same methods

SqlSingle::Equals ( object value ) : bool

Usage Example

Exemple #1
0
        /**
         * Performs a logical comparison on two instances of SqlSingle to determine if they are equal.
         * @param x A SqlSingle instance.
         * @param y A SqlSingle 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(SqlSingle x, SqlSingle 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.SqlSingle::Equals