<PackageReference Include="Newtonsoft.Json" Version="10.0.1" />

CollectionUtils

static class CollectionUtils
public static bool AddDistinct<T>(this IList<T> list, T value)

public static bool AddDistinct<T>(this IList<T> list, T value, IEqualityComparer<T> comparer)

public static void AddRange<T>(this IList<T> initial, IEnumerable<T> collection)

Adds the elements of the specified collection to the specified generic IList<T>.

public static bool AddRangeDistinct<T>(this IList<T> list, IEnumerable<T> values, IEqualityComparer<T> comparer)

public static T[] ArrayEmpty<T>()

public static bool Contains<T>(this List<T> list, T value, IEqualityComparer comparer)

public static bool ContainsValue<TSource>(this IEnumerable<TSource> source, TSource value, IEqualityComparer<TSource> comparer)

public static int IndexOf<T>(this IEnumerable<T> collection, Func<T, bool> predicate)

public static int IndexOfReference<T>(this List<T> list, T item)

public static bool IsDictionaryType(Type type)

public static bool IsNullOrEmpty<T>(ICollection<T> collection)

Determines whether the collection is null or empty.

public static ConstructorInfo ResolveEnumerableCollectionConstructor(Type collectionType, Type collectionItemType)

public static ConstructorInfo ResolveEnumerableCollectionConstructor(Type collectionType, Type collectionItemType, Type constructorArgumentType)

public static Array ToMultidimensionalArray(IList values, Type type, int rank)