Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

  • Declared in: RT.Util.Ut

Declaration

public static T[][] NewArray<T>(
    int size1,
    int size2,
    Func<int, int, T> initialiser = null
)

Summary

Instantiates a fully-initialized rectangular jagged array with the specified dimensions.

Generic type parameters

T Type of the array element.

Parameters

intsize1 Size of the first dimension.
intsize2 Size of the second dimension.
Func<int, int, T>initialiser Optional function to initialise the value of every element.