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.ToList<T>(T[]) Method

Converts an array into their List counterpart.

public static System.Collections.Generic.List<T> ToList<T>(this T[] array);

Type parameters

T
Data type of the array

Parameters

array T[]
The array to convert

Returns

System.Collections.Generic.List<T>
The List equivalent of the array.