public static Compare ( short first, short second, int elementCount ) : int | ||
first | short | The first array to compare. |
second | short | The second array to compare. |
elementCount | int | The number of elements to compare. |
return | int |
public static int Compare(short[] first, short[] second, int elementCount)
{
for (int i = 0; i < elementCount; i++)
{
if (first[i] != second[i])
return first[i] - second[i];
}
return 0;
}