SqlDecimal.Equals SqlDecimal.Equals SqlDecimal.Equals SqlDecimal.Equals Method

定义

返回一个值,指示 SqlDecimal 的实例表示的值与所提供的对象参数表示的值是否相等。Returns a value that indicates whether an instance of SqlDecimal and the supplied object parameter represent the same value.

重载

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的 Object 参数与 Value 实例的 SqlDecimal 属性进行比较。Compares the supplied Object parameter to the Value property of the SqlDecimal instance.

Equals(SqlDecimal, SqlDecimal) Equals(SqlDecimal, SqlDecimal) Equals(SqlDecimal, SqlDecimal) Equals(SqlDecimal, SqlDecimal)

对两个 SqlDecimal 操作数执行逻辑比较,以确定它们是否相等。Performs a logical comparison of the two SqlDecimal operands to determine whether they are equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的 Object 参数与 Value 实例的 SqlDecimal 属性进行比较。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

参数

value
Object Object Object Object

要比较的 ObjectThe Object to be compared.

返回

如果对象是 SqlDecimal 的实例并且两者相等,则为 truetrue if object is an instance of SqlDecimal and the two are equal. 否则为 falseOtherwise, false.

另请参阅

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

参数

返回

如果两个值相等,则为 truetrue if the two values are equal. 否则为 falseOtherwise, false. 如果任一实例为 null,则 SqlDecimal 的值将为 null。If either instance is null, the value of the SqlDecimal will be null.

另请参阅

适用于