allocate an arrayof passed dimensions dynamically. The Array.NewInstance method does not throw an error


Namespace: nom.tam.util
Assembly: CSharpFITS_v1.1 (in CSharpFITS_v1.1.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function NewInstance( _ 
   ByVal cl As Type,  _ 
   ByVal dims As Integer(),  _ 
   ByVal dim As Integer _ 
) As Array
C#
public static Array NewInstance(
   Type cl,
   int[] dims,
   int dim
)
C++
public:
 static Array NewInstance(
   Type cl,
   array<int>^ dims,
   int dim
)
J#
public static Array NewInstance(
   Type cl,
   int[] dims,
   int dim
)
JScript
public static  function NewInstance(
   cl : Type,
   dims : int[],
   dim : int
) : Array

Parameters

cl
The class of the array.
dims
The dimensions of the array.
dim
The index in the array

Return Value

The allocated array.

See Also