Find the dimensions of an object. * This method returns an integer array with the dimensions of the object o which should usually be an array. * It returns an array of dimension 0 for scalar objects and it returns -1 for dimension which have not been allocated, e.g., int[][][] x = new int[100][][]; should return [100,-1,-1]. *
Namespace: nom.tam.util
Assembly: CSharpFITS_v1.1 (in CSharpFITS_v1.1.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Shared Function GetDimensions( _ ByVal o As Object _ ) As Integer() |
| C# |
|---|
| public static int[] GetDimensions( object o ) |
| C++ |
|---|
| public: static array<int>^ GetDimensions( Object o ) |
| J# |
|---|
| public static int[] GetDimensions( object o ) |
| JScript |
|---|
| public static
function GetDimensions( o : Object ) : int[] |
Parameters
- o
- The object to get the dimensions of.