Array3DTSetElementUnchecked Method

Sets the element at the specified indices, allowing them to point to any element in the UnderlyingArray of the Buffer property. To validate the coordinates against Length use the appropriate indexer instead. Parameter order is the same as in case of a regular three-dimensional array. This method does not perform any validation, so it can even throw a NullReferenceException if the IsNull property returns .

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void SetElementUnchecked(
	int z,
	int y,
	int x,
	T value
)

Parameters

z  Int32
The Z-coordinate (depth index) of the item to set.
y  Int32
The Y-coordinate (row index) of the item to set.
x  Int32
The X-coordinate (column index) of the item to set.
value  T
The value to set.

Remarks

If the compiler you use supports members that return a value by reference, you can also use the GetElementReferenceUnchecked method.

Exceptions

IndexOutOfRangeExceptionThe specified indices refer to an invalid index in the actual underlying array.
NullReferenceExceptionThe IsNull property returns .

See Also