Class ICollectionExtensions
- Namespace
- PAC.Extensions.System.Collections
public static class ICollectionExtensions
- Inheritance
-
ICollectionExtensions
- Inherited Members
Methods
ContainsAll<T>(ICollection<T>, IEnumerable<T>)
Whether all the given elements are in the ICollection<T>.
public static bool ContainsAll<T>(this ICollection<T> iCollection, IEnumerable<T> elements)
Parameters
iCollection
ICollection<T>elements
IEnumerable<T>
Returns
Type Parameters
T
ContainsAll<T>(ICollection<T>, params T[])
Whether all the given elements are in the ICollection<T>.
public static bool ContainsAll<T>(this ICollection<T> iCollection, params T[] elements)
Parameters
iCollection
ICollection<T>elements
T[]
Returns
Type Parameters
T
ContainsAny<T>(ICollection<T>, IEnumerable<T>)
Whether any of the given elements are in the ICollection<T>.
public static bool ContainsAny<T>(this ICollection<T> iCollection, IEnumerable<T> elements)
Parameters
iCollection
ICollection<T>elements
IEnumerable<T>
Returns
Type Parameters
T
ContainsAny<T>(ICollection<T>, params T[])
Whether any of the given elements are in the ICollection<T>.
public static bool ContainsAny<T>(this ICollection<T> iCollection, params T[] elements)
Parameters
iCollection
ICollection<T>elements
T[]
Returns
Type Parameters
T
ContainsNone<T>(ICollection<T>, IEnumerable<T>)
Whether none of the given elements are in the ICollection<T>.
public static bool ContainsNone<T>(this ICollection<T> iCollection, IEnumerable<T> elements)
Parameters
iCollection
ICollection<T>elements
IEnumerable<T>
Returns
Type Parameters
T
ContainsNone<T>(ICollection<T>, params T[])
Whether none of the given elements are in the ICollection<T>.
public static bool ContainsNone<T>(this ICollection<T> iCollection, params T[] elements)
Parameters
iCollection
ICollection<T>elements
T[]
Returns
Type Parameters
T
ContainsNotAll<T>(ICollection<T>, IEnumerable<T>)
Whether at least one of the given elements is not in the ICollection<T>.
public static bool ContainsNotAll<T>(this ICollection<T> iCollection, IEnumerable<T> elements)
Parameters
iCollection
ICollection<T>elements
IEnumerable<T>
Returns
Type Parameters
T
ContainsNotAll<T>(ICollection<T>, params T[])
Whether at least one of the given elements is not in the ICollection<T>.
public static bool ContainsNotAll<T>(this ICollection<T> iCollection, params T[] elements)
Parameters
iCollection
ICollection<T>elements
T[]
Returns
Type Parameters
T