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

CollectionExtension

public sealed class CollectionExtension
Provides access to extension methods over IEnumerable(of T).
public static bool In<T>(T source, T[] collection)

Indicates whether or not the provided collection contains the provided value.

public static IEnumerable<Y> MapOver<T, Y>(Func<T, Y> operation, IEnumerable<T> collection)

Maps each value of the provided sequence to a new type, using the provided delegate.

public static IEnumerable<T> OrderByProperty<T>(IEnumerable<T> list, string sortExpression)

Sorts a sequence of values according to a key identified by the provided expression. Uses reflection to retrive sort-order keys.

public static IEnumerable<T> TogetherWith<T>(T singleItem, T[] theRest)

Includes the provided item at the head of the provided sequence.