<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.2.1" />

ArrayExtension

public sealed class ArrayExtension
Provides access to extension methods on instances of IEnumerable(of T).
public static IEnumerable<IEnumerable<T>> Divide<T>(IEnumerable<T> array, int chunkSize)

Splits the provided enumerable into smaller chunks

public static IEnumerable<int> FromDelimitedList(string s, string seperator)

Splits a string into an enumerable of integers, using the provided separator character.

public static IEnumerable<string> FromDelimitedListAsText(string s, string seperator)

Splits a string into an enumerable of strings, using the provided separator character.

public static IEnumerable<T> GetRange<T>(IEnumerable<T> array, int beginIndex, int length)

Gets a subset of values from the provided enumerable.

public static string ToEnglishList<T>(IEnumerable<T> col)

Converts an IEnumerable(of T) to a comma separated list of values, with an 'and' before the last term.

E.g. 1 item in enumerable -> First

E.g. 2 items in enumerable -> First and Second

E.g. 3+ items in enumerable -> First, Second, and Third.