Show / Hide Table of Contents

CompareTo Method

CompareTo(object?)

Compares the relative sort order of the specified object to the current object.

C#
public int CompareTo(object? obj)

Parameters

Type Name Description
object obj

Returns

int

An integer that indicates whether the current instance precedes (negative value), follows (positive value), or occurs in the same position (0) in the sort order as the other object.

Remarks

By definition any object compares greater than null.

CompareTo(FirmwareVersion)

Compares the relative sort order of the current instance with another object of the same type.

C#
public int CompareTo(FirmwareVersion other)

Parameters

Type Name Description
FirmwareVersion other

Returns

int

An integer that indicates whether the current instance precedes (negative value), follows (positive value), or occurs in the same position (0) in the sort order as the other object.

In this article
Back to top Generated by DocFX