ArrayExtensionsValidateParametersT Method
Validates that the specified startIndex and length are valid within the given array.
Namespace: Gemstone.ArrayExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public static void ValidateParameters<T>(
this T[]? array,
int startIndex,
int length
)
<ExtensionAttribute>
Public Shared Sub ValidateParameters(Of T) (
array As T(),
startIndex As Integer,
length As Integer
)
public:
[ExtensionAttribute]
generic<typename T>
static void ValidateParameters(
array<T>^ array,
int startIndex,
int length
)
JavaScript does not support generic types or methods.
- array T
- Array to validate.
- startIndex Int32
- 0-based start index into the array.
- length Int32
- Valid number of items within array from startIndex.
- T
- Type of array.
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. 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).
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | startIndex or length is less than 0 -or-
startIndex and length will exceed array length.
|