Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public static bool
Contains(
NativeArray<T> container,
U
value);
Parameters
| Parameter |
Description |
| container |
The container to search. |
| value |
The value to locate. |
Returns
bool
True if the value is present in this container.
Description
Returns true if a particular value is present in this container.
Declaration
public static bool
Contains(
NativeList<T> container,
U
value);
Parameters
| Parameter |
Description |
| container |
The container to search. |
| value |
The value to locate. |
Returns
bool
True if the value is present in this container.
Description
Returns true if a particular value is present in this container.
Declaration
public static bool Contains(T* ptr,
int length,
U value);
Parameters
| Parameter |
Description |
| ptr |
The buffer. |
| length |
Number of elements in the buffer. |
| value |
The value to locate. |
Returns
bool
True if the value is present in the buffer.
Description
Returns true if a particular value is present in a buffer.
Declaration
public static bool Contains(ReadOnlySpan<T> roSpan,
U value);
Parameters
| Parameter |
Description |
| roSpan |
A ReadOnlySpan. |
| value |
The value to locate. |
Returns
bool
True if the value is present in this container.
Description
Returns true if a particular value is present in this container.