RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.CollectionHelpers.Extensions

Extensions.Contains<T>(T[], T) Method

Checks if a value exists within the array.

public static bool Contains<T>(this T[] array, T value);

Type parameters

T
Data type of the array

Parameters

array T[]
The array to inspect

value T
The value to check

Returns

System.Boolean
True if the value exists in the array. False if not.