Skip to main content

CameraDeviceInfo.CompareTo(Object) Method

Compares the current instance with a specified object and indicates whether the current instance precedes, follows, or appears at the same position in the sort order as the specified object.

Namespace: DevExpress.Data.Camera

Assembly: DevExpress.Data.Desktop.v24.1.dll

NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

public int CompareTo(
    object value
)

Parameters

Name Type Description
value Object

An object to compare with the current instance.

Returns

Type Description
Int32

An integer value that specifies whether the current instance precedes, follows, or appears at the same position in the sort order as the specified object.

Remarks

The CompareTo method compares the CameraDeviceInfo instances based on their CameraDeviceInfo.Name property values. This method performs a word (case-sensitive and culture-sensitive) comparison using the current culture.

See Also