Unit.Inequality(Unit, Unit) Operator

Definition

Compares two Unit objects to determine whether they are not equal.

C#
public static bool operator !=(System.Web.UI.WebControls.Unit left, System.Web.UI.WebControls.Unit right);

Parameters

left
Unit

The Unit on the left side of the operator.

right
Unit

The Unit on the right side of the operator.

Returns

true if the Unit objects are not equal; otherwise, false.

Remarks

Use this operator to compare two Unit objects for inequality. For the objects to not be equal, they must have different values for the Type property or the Value property.

The equivalent method for this operator is Unit.Equals(Object)

Applies to

Product Versions
.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

See also