ArrayExtensions.IsInBounds

Extension Method in ArrayExtensions

Declaration

public static bool IsInBounds(this Array array, int index)

Description

Checks if the specified index is within the bounds of the array.

Parameters

arrayThe array to check.
indexThe index to check.

Returns

boolTrue if the index is within the bounds of the array.