Table of Contents

Class ArrayFactory

Namespace
Garyon.Functions
Assembly
Garyon.dll

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

value T

The value to fill the resulting array with.

length int

The length of the resulting array.

Returns

T[]

The resulting array containing the filling value in all of its indices.

Type Parameters

T

The 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

value T

The value to fill the resulting array with.

length0 int

The length of the first dimension of the resulting array.

length1 int

The 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

T

The 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

value T

The value to fill the resulting array with.

length0 int

The length of the first dimension of the resulting array.

length1 int

The length of the second dimension of the resulting array.

length2 int

The 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

T

The type of the stored values in the resulting array.