CollectionExtensionsCompareToTSource Method
Compares two arrays.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public static int CompareTo<TSource>(
this TSource[]? array1,
TSource[]? array2,
bool orderIsImportant = true
)
<ExtensionAttribute>
Public Shared Function CompareTo(Of TSource) (
array1 As TSource(),
array2 As TSource(),
Optional orderIsImportant As Boolean = true
) As Integer
public:
[ExtensionAttribute]
generic<typename TSource>
static int CompareTo(
array<TSource>^ array1,
array<TSource>^ array2,
bool orderIsImportant = true
)
JavaScript does not support generic types or methods.
- array1 TSource
- The first type array to compare to.
- array2 TSource
- The second type array to compare against.
- orderIsImportant Boolean (Optional)
- true if order of elements should be considered for equality; otherwise, false.
- TSource
- Type of the array.
Int32An
Int32 which returns 0 if they are equal, 1 if
array1 is larger, or -1 if
array2 is larger.In Visual Basic and C#, you can call this method as an instance method on any object of type
TSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ArgumentException | Cannot compare multidimensional arrays. |