Array2DT(Int32, Int32, Boolean) Constructor

Initializes a new instance of the Array2DT struct using the specified height and width. Parameter order is the same as in case of instantiating a regular two-dimensional array.
If the created Array2DT is not used anymore the Dispose method should be called to return the possibly ArrayPoolT-allocated underlying buffer to the pool.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public Array2D(
	int height,
	int width,
	bool assureClean
)

Parameters

height  Int32
The height of the array to be created.
width  Int32
The width of the array to be created.
assureClean  Boolean
to make sure the allocated underlying array is zero-initialized; otherwise, . May not have an effect on older targeted platforms.

See Also