Method Contains
Contains<T, U>(UnsafeList<T>, U)
Returns true if a particular value is present in this list.
Declaration
public static bool Contains<T, U>(this UnsafeList<T> list, U value) where T : unmanaged, IEquatable<U>
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
list | This list. |
U | value | The value to locate. |
Returns
Type | Description |
---|---|
bool | True if the value is present in this list. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |
U | The type of value to locate. |
Contains<T, U>(ReadOnly, U)
Returns true if a particular value is present in the list.
Declaration
public static bool Contains<T, U>(this UnsafeList<T>.ReadOnly list, U value) where T : unmanaged, IEquatable<U>
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
list | This reader of the list. |
U | value | The value to locate. |
Returns
Type | Description |
---|---|
bool | True if the value is present in the list. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |
U | The type of value to locate. |
Contains<T, U>(ParallelReader, U)
Obsolete. Use Unsafe
Declaration
public static bool Contains<T, U>(this UnsafeList<T>.ParallelReader list, U value) where T : unmanaged, IEquatable<U>
Parameters
Type | Name | Description |
---|---|---|
Unsafe |
list | This reader of the list. |
U | value | The value to locate. |
Returns
Type | Description |
---|---|
bool | True if the value is present in the list. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |
U | The type of value to locate. |