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.

C#
public bool Equals(System.Data.SqlTypes.SqlDecimal other);

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

.NET 10 and other versions
Product Versions
.NET 7, 8, 9, 10

Equals(Object)

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

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

C#
public override bool Equals(object? value);
C#
public override bool Equals(object value);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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.

C#
public static System.Data.SqlTypes.SqlBoolean Equals(System.Data.SqlTypes.SqlDecimal x, System.Data.SqlTypes.SqlDecimal y);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1