System.Web.UI.WebControls.Unit.op_Equality Method

Compares two System.Web.UI.WebControls.Unit objects to determine whether they are equal.

Syntax

public static bool operator== (Unit left, Unit right)

Parameters

left
The System.Web.UI.WebControls.Unit on the left side of the operator.
right
The System.Web.UI.WebControls.Unit on the right side of the operator.

Returns

true if both System.Web.UI.WebControls.Unit objects are equal; otherwise, false.

Remarks

Use this operator to compare two System.Web.UI.WebControls.Unit objects for equality. For both objects to be equal, they must have the same values for both the Unit.Type and Unit.Value properties.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0