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 |
|---|---|---|
| UnsafeList<T> | 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 |
|---|---|---|
| UnsafeList<T>.ReadOnly | 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 UnsafeList<T>.ReadOnly instead.
Declaration
public static bool Contains<T, U>(this UnsafeList<T>.ParallelReader list, U value) where T : unmanaged, IEquatable<U>
Parameters
| Type | Name | Description |
|---|---|---|
| UnsafeList<T>.ParallelReader | 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. |