Class ArrayExtensions
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
arrT[]valueT
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
arrT[]generatorFunc<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
arrT[]valueT
Returns
- T[]
Type Parameters
T