Table of Contents

Method CompareTo

Namespace
Skyline.DataMiner.Net.Ticketing
Assembly
SLNetTypes.dll

CompareTo(TicketID)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(TicketID other)

Parameters

other TicketID

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value can have the following meanings:

<table><thead><tr><th class="term">Value</th><th class="term">Meaning</th></tr></thead><tbody><tr><td class="term">Less than zero</td><td class="description">This instance precedes <code class="paramref">other</code> in the sort order.</td></tr><tr><td class="term">Zero</td><td class="description">This instance occurs in the same position in the sort order as <code class="paramref">other</code>.</td></tr><tr><td class="term">Greater than zero</td><td class="description">This instance follows <code class="paramref">other</code> in the sort order.</td></tr></tbody></table>

CompareTo(object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(object obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value can have the following meanings:

<table><thead><tr><th class="term">Value</th><th class="term">Meaning</th></tr></thead><tbody><tr><td class="term">Less than zero</td><td class="description">This instance precedes <code class="paramref">obj</code> in the sort order.</td></tr><tr><td class="term">Zero</td><td class="description">This instance occurs in the same position in the sort order as <code class="paramref">obj</code>.</td></tr><tr><td class="term">Greater than zero</td><td class="description">This instance follows <code class="paramref">obj</code> in the sort order.</td></tr></tbody></table>