Convert an array to a specified type. This method supports conversions only among the primitive numeric types.


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

Syntax

Visual Basic (Declaration)
Public Shared Function ConvertArray( _ 
   ByVal array As Object,  _ 
   ByVal newType As Type _ 
) As Object
C#
public static object ConvertArray(
   object array,
   Type newType
)
C++
public:
 static Object ConvertArray(
   Object array,
   Type newType
)
J#
public static object ConvertArray(
   object array,
   Type newType
)
JScript
public static  function ConvertArray(
   array : Object,
   newType : Type
) : Object

Parameters

array
A possibly multidimensional array to be converted.
newType
The desired output type. This should be one of the class descriptors for primitive numeric data, e.g., double.type.

See Also