<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

CollectionExtensions

static class CollectionExtensions
Defines typed IEnumerable extension methods.
public static IEnumerable<T> GetRange<T>(this IEnumerable<T> items, int beginIndex, int length)

Gets a subset of values from the provided enumerable.

public static bool In<T>(this T source, T[] collection)

Determines whether the provided collection contains the provided value.

public static bool IsNullOrEmpty<T>(this IEnumerable<T> sequence)

Determines whether or not the sequence is null or empty.

public static string ToCsv<T>(this IEnumerable<T> sequence)

Transforms a sequence of values to a comma-delimited string.

public static string ToCsv<T>(this IEnumerable<T> sequence, Func<T, string> itemStringifier)

Transforms a sequence of values to a comma-delimited string, using the provided string transformation function.

public static string ToDelimitedString<T>(this IEnumerable<T> sequence, string delimiter, Func<T, string> itemStringifier)

Transforms a sequence of values to a comma-delimited string, using the provided delimiter, bound and string transformation function.

public static string ToDelimitedString<T>(this IEnumerable<T> sequence, string delimiter = ",", string bound = "", string cellFormat = "{0}")

Transforms a sequence of values to a delimited string, using the provided delimiter, bound and format string.