ArrayExtensionsAsArray3DT(T, Int32, Int32, Int32) Method

Gets an Array3DT wrapper for the specified array. The array must have enough capacity for the specified depth, height and width. No heap allocation occurs when using this method.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public static Array3D<T> AsArray3D<T>(
	this T[] array,
	int depth,
	int height,
	int width
)

Parameters

array  T
The desired underlying buffer for the Array3DT instance to be created. It must have sufficient capacity for the specified dimensions.
depth  Int32
The depth of the array to be returned.
height  Int32
The height of the array to be returned.
width  Int32
The width of the array to be returned.

Type Parameters

T
The type of the elements in the array.

Return Value

Array3DT
An Array3DT instance using the specified array as its underlying buffer that has the specified dimensions.

Usage Note

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).

See Also