CompareTo Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Compares the current instance with another attribute. Comparison is based on attributes' name.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public int CompareTo(
	Object obj
)
Visual Basic
Public Function CompareTo ( _
	obj As Object _
) As Integer
Visual C++
public:
virtual int CompareTo(
	Object^ obj
) sealed

Parameters

obj
Type: System..::..Object
An attribute to compare with this instance.

Return Value

A 32-bit signed integer that indicates the relative order of the names comparison.

Implements

IComparable..::..CompareTo(Object)

See Also