Click or drag to resize
BufferGetByte Method
Retrieves the byte at a specified location in a specified array.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte GetByte(
	Array array,
	int index
)

Parameters

array
Type: SystemArray
An array.
index
Type: SystemInt32
A location in the array.

Return Value

Type: Byte
Returns the index byte in the array.
Exceptions
ExceptionCondition
ArgumentExceptionarray is not a primitive.
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionindex is negative or greater than the length of array.
See Also