Bewerken

Share via


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(SqlDecimal)

Indicates whether the current instance is equal to another instance of the same type.

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(SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Indicates whether the current instance is equal to another instance of the same type.

public:
 virtual bool Equals(System::Data::SqlTypes::SqlDecimal other);
public bool Equals (System.Data.SqlTypes.SqlDecimal other);
override this.Equals : System.Data.SqlTypes.SqlDecimal -> bool
Public Function Equals (other As SqlDecimal) As Boolean

Parameters

other
SqlDecimal

An instance to compare with this instance.

Returns

true if the current instance is equal to the other instance; otherwise, false.

Implements

Applies to

Equals(Object)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

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);
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

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

See also

Applies to

Equals(SqlDecimal, SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

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

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