Class ArrayExtensions
Providers extensions for Array type.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class ArrayExtensions
Methods
View SourceGetLength(Array)
Gets length of the array.
Declaration
[CLSCompliant(false)]
public static nuint GetLength(Array array)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | array | The array object. |
Returns
| Type | Description |
|---|---|
| nuint | The length of the array as native unsigned integer. |
Remarks
This method supports one-dimensional as well as multidimensional arrays.
IsNullOrEmpty(Array?)
Indicates that array is null or empty.
Declaration
public static bool IsNullOrEmpty(Array? array)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | array | The array to check. |
Returns
| Type | Description |
|---|---|
| bool |