Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: T[] NewArray<T>(int, Func<int, T>)

  • Declared in: RT.Util.Ut

Declaration

public static T[] NewArray<T>(
    int size,
    Func<int, T> initialiser
)

Summary

Instantiates a fully-initialized array with the specified dimensions.

Generic type parameters

T Type of the array element.

Parameters

intsize Size of the first dimension.
Func<int, T>initialiser Function to initialise the value of every element.