Class ReadOnlyArrayExtensions
Extension methods to help with ReadOnlyArrayExtensions contents.
Namespace: UnityEngine.InputSystem.Utilities
Syntax
public static class ReadOnlyArrayExtensions : object
Methods
Contains<TValue>(ReadOnlyArray<TValue>, TValue)
Declaration
public static bool Contains<TValue>(this ReadOnlyArray<TValue> array, TValue value)
where TValue : IComparable<TValue>
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyArray<TValue> | array | |
TValue | value |
Returns
Type | Description |
---|---|
Boolean |
Type Parameters
Name | Description |
---|---|
TValue |
ContainsReference<TValue>(ReadOnlyArray<TValue>, TValue)
Declaration
public static bool ContainsReference<TValue>(this ReadOnlyArray<TValue> array, TValue value)
where TValue : class
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyArray<TValue> | array | |
TValue | value |
Returns
Type | Description |
---|---|
Boolean |
Type Parameters
Name | Description |
---|---|
TValue |
IndexOfReference<TValue>(ReadOnlyArray<TValue>, TValue)
Declaration
public static int IndexOfReference<TValue>(this ReadOnlyArray<TValue> array, TValue value)
where TValue : class
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyArray<TValue> | array | |
TValue | value |
Returns
Type | Description |
---|---|
Int32 |
Type Parameters
Name | Description |
---|---|
TValue |