System.Web.UI.WebControls.Unit.Equals Method

Compares this System.Web.UI.WebControls.Unit with the specified object.

Syntax

public override bool Equals (object obj)

Parameters

obj
The object for comparison.

Returns

true if the System.Web.UI.WebControls.Unit that this method is called from is equal to the specified object; otherwise, false.

Remarks

Use the Unit.Equals(object) method to compare the System.Web.UI.WebControls.Unit that this method is called from with the object specified by obj. For both objects to be equal, they must have the same values for both the Unit.Type and Unit.Value properties.

Note:

The object specified by obj must by a System.Web.UI.WebControls.Unit type object for the comparison to succeed. If the object is null, false is returned.

Requirements

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