Provides extension methods for the NetworkArray class.
More...
|
| static ref T | GetRef< T > (this NetworkArray< T > array, int index) |
| | Returns a reference to the element at a specified position in the NetworkArray.
|
| static int | IndexOf< T > (this NetworkArray< T > array, T elem) |
| | Finds the index of the first occurrence of a specified element in the NetworkArray.
|
Provides extension methods for the NetworkArray class.
◆ GetRef< T >()
| ref T GetRef< T > |
( |
this NetworkArray< T > | array, |
|
|
int | index ) |
|
static |
Returns a reference to the element at a specified position in the NetworkArray.
- Parameters
-
| array | The NetworkArray to search. |
| index | The zero-based index of the element to get a reference for. |
- Returns
- A reference to the element at the specified position in the NetworkArray.
◆ IndexOf< T >()
| int IndexOf< T > |
( |
this NetworkArray< T > | array, |
|
|
T | elem ) |
|
static |
Finds the index of the first occurrence of a specified element in the NetworkArray.
- Parameters
-
| array | The NetworkArray to search. |
| elem | The element to locate in the NetworkArray. |
- Returns
- The zero-based index of the first occurrence of elem within the entire NetworkArray, if found; otherwise, -1.
- Type Constraints
-
| T | : | unmanaged | |
| T | : | IEquatable<T> | |