Click or drag to resize
BufferHelperAssertValidRangeT Method
Checks that index and count form a valid range in buffer.

Namespace: Lawo
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public static void AssertValidRange<T>(
	T[] buffer,
	string bufferName,
	int index,
	string indexName,
	int count,
	string countName
)

Parameters

buffer
Type: T
bufferName
Type: SystemString
index
Type: SystemInt32
indexName
Type: SystemString
count
Type: SystemInt32
countName
Type: SystemString

Type Parameters

T
The type of the elements in the array.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer equals null.
ArgumentOutOfRangeExceptionindex and/or count are negative.
ArgumentExceptionThe range defined by index and count does not fall entirely within the buffer.
See Also