Show / Hide Table of Contents

Class AbpCollectionExtensions

Inheritance
object
AbpCollectionExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: System.Collections.Generic
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpCollectionExtensions

Methods

AddIfNotContains<T>(ICollection<T>, IEnumerable<T>)

Declaration
public static IEnumerable<T> AddIfNotContains<T>(this ICollection<T> source, IEnumerable<T> items)
Parameters
Type Name Description
ICollection<T> source
IEnumerable<T> items
Returns
Type Description
IEnumerable<T>
Type Parameters
Name Description
T

AddIfNotContains<T>(ICollection<T>, Func<T, bool>, Func<T>)

Declaration
public static bool AddIfNotContains<T>(this ICollection<T> source, Func<T, bool> predicate, Func<T> itemFactory)
Parameters
Type Name Description
ICollection<T> source
Func<T, bool> predicate
Func<T> itemFactory
Returns
Type Description
bool
Type Parameters
Name Description
T

AddIfNotContains<T>(ICollection<T>, T)

Declaration
public static bool AddIfNotContains<T>(this ICollection<T> source, T item)
Parameters
Type Name Description
ICollection<T> source
T item
Returns
Type Description
bool
Type Parameters
Name Description
T

IsNullOrEmpty<T>(ICollection<T>?)

Declaration
public static bool IsNullOrEmpty<T>(this ICollection<T>? source)
Parameters
Type Name Description
ICollection<T> source
Returns
Type Description
bool
Type Parameters
Name Description
T

RemoveAll<T>(ICollection<T>, IEnumerable<T>)

Declaration
public static void RemoveAll<T>(this ICollection<T> source, IEnumerable<T> items)
Parameters
Type Name Description
ICollection<T> source
IEnumerable<T> items
Type Parameters
Name Description
T

RemoveAll<T>(ICollection<T>, Func<T, bool>)

Declaration
public static IList<T> RemoveAll<T>(this ICollection<T> source, Func<T, bool> predicate)
Parameters
Type Name Description
ICollection<T> source
Func<T, bool> predicate
Returns
Type Description
IList<T>
Type Parameters
Name Description
T
In this article
Back to top Powered by Volosoft