public static int CompareTo<T>(
this T[]? source,
T[]? other
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function CompareTo(Of T As {Object, IComparable(Of T)}) (
source As T(),
other As T()
) As Integer
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static int CompareTo(
array<T>^ source,
array<T>^ other
)
A signed integer that indicates the relative comparison of source array and other array.
Return Value | Description |
---|---|
Less than zero | Source array is less than other array. |
Zero | Source array is equal to other array. |
Greater than zero | Source array is greater than other array. |