KGy SOFT

ArrayExtensionsAsArray3DT Method

KGy SOFT Core Libraries Help
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.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public static Array3D<T> AsArray3D<T>(
	this T[] array,
	int depth,
	int height,
	int width
)

Parameters

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

Type Parameters

T
The type of the elements in the array.

Return Value

Type: 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 . 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

Reference