Class ArrayFactory
Provides factory methods for arrays.
public static class ArrayFactory
- Inheritance
-
ArrayFactory
- Inherited Members
Methods
CreateFilled<T>(T, int)
Creates a new single-dimensional array containing the single provided value.
public static T[] CreateFilled<T>(T value, int length)
Parameters
valueTThe value to fill the resulting array with.
lengthintThe length of the resulting array.
Returns
- T[]
The resulting array containing the filling value in all of its indices.
Type Parameters
TThe type of the stored values in the resulting array.
CreateFilled<T>(T, int, int)
Creates a new single-dimensional array containing the single provided value.
public static T[,] CreateFilled<T>(T value, int length0, int length1) where T : unmanaged
Parameters
valueTThe value to fill the resulting array with.
length0intThe length of the first dimension of the resulting array.
length1intThe length of the second dimension of the resulting array.
Returns
- T[,]
The resulting array containing the filling value in all of its indices.
Type Parameters
TThe type of the stored values in the resulting array.
CreateFilled<T>(T, int, int, int)
Creates a new single-dimensional array containing the single provided value.
public static T[,,] CreateFilled<T>(T value, int length0, int length1, int length2) where T : unmanaged
Parameters
valueTThe value to fill the resulting array with.
length0intThe length of the first dimension of the resulting array.
length1intThe length of the second dimension of the resulting array.
length2intThe length of the third dimension of the resulting array.
Returns
- T[,,]
The resulting array containing the filling value in all of its indices.
Type Parameters
TThe type of the stored values in the resulting array.