Table of Contents

Class ArrayExtensions

Namespace
CriusNyx.Util
Assembly
CriusNyxUtil.dll

Extensions for arrays

public static class ArrayExtensions
Inheritance
ArrayExtensions
Inherited Members

Methods

FillEmpty<T>(T[], T)

Fill all elements in the array that are equal to the default value for T.

public static T[] FillEmpty<T>(this T[] arr, T value)

Parameters

arr T[]
value T

Returns

T[]

Type Parameters

T

FillFunc<T>(T[], Func<T>)

Replace all elements in arr with the output of the generator function.

public static T[] FillFunc<T>(this T[] arr, Func<T> generator)

Parameters

arr T[]
generator Func<T>

Returns

T[]

Type Parameters

T

Fill<T>(T[], T)

Fill all elements in arr with the provided value.

public static T[] Fill<T>(this T[] arr, T value)

Parameters

arr T[]
value T

Returns

T[]

Type Parameters

T