SqlDecimal.Equals Method

Definition

Returns a value that indicates whether an instance of SqlDecimal and the supplied object parameter represent the same value.

Overloads

Equals(Object)

Compares the supplied Object parameter to the Value property of the SqlDecimal instance.

Equals(SqlDecimal, SqlDecimal)

Performs a logical comparison of the two SqlDecimal operands to determine whether they are equal.

Equals(Object)

Compares the supplied Object parameter to the Value property of the SqlDecimal instance.

public:
 override bool Equals(System::Object ^ value);
public override bool Equals (object value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

Parameters

value
Object

The Object to be compared.

Returns

Boolean

true if object is an instance of SqlDecimal and the two are equal. Otherwise, false.

See also

Applies to

Product Introduced

Equals(SqlDecimal, SqlDecimal)

Performs a logical comparison of the two SqlDecimal operands to determine whether they are equal.

public:
 static System::Data::SqlTypes::SqlBoolean Equals(System::Data::SqlTypes::SqlDecimal x, System::Data::SqlTypes::SqlDecimal y);
public static System.Data.SqlTypes.SqlBoolean Equals (System.Data.SqlTypes.SqlDecimal x, System.Data.SqlTypes.SqlDecimal y);
static member Equals : System.Data.SqlTypes.SqlDecimal * System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlBoolean
Public Shared Function Equals (x As SqlDecimal, y As SqlDecimal) As SqlBoolean

Parameters

x
SqlDecimal

A SqlDecimal structure.

y
SqlDecimal

A SqlDecimal structure.

Returns

SqlBoolean

true if the two values are equal. Otherwise, false. If either instance is null, the value of the SqlDecimal will be null.

See also

Applies to

Product Introduced