Click or drag to resize

ClusterTInstanceCompareTo Method

Compares this cluster with another cluster instance. Comparison is performed by count (number of items) first, then by string representation of the items.

Namespace:  Aglomera
Assembly:  Aglomera (in Aglomera.dll) Version: 1.1.0
Syntax
C#
public int CompareTo(
	Cluster<TInstance> other
)
Request Example View Source

Parameters

other
Type: AglomeraClusterTInstance
The cluster to compare to.

Return Value

Type: Int32
-1 if other is null, the result of Count comparison between the clusters, or the result of string.CompareOrdinal" if the clusters have the same count.

Implements

IComparableTCompareTo(T)
See Also