Class ArrayExtensions
Array type method extensions.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class ArrayExtensions
Methods
IsValidArray(Array)
Checks whether the given array is not null and has at least one entry
Declaration
public static bool IsValidArray(this Array array)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | array |
Returns
| Type | Description |
|---|---|
| Boolean |
WrapIndex(Array, Int32)
Wraps the index around to the beginning of the array if the provided index is longer than the array.
Declaration
public static int WrapIndex(this Array array, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | array | The array to wrap the index around. |
| Int32 | index | The index to look for. |
Returns
| Type | Description |
|---|---|
| Int32 |