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.System.Collections.Generic
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpCollectionExtensions
Methods
AddIfNotContains<T>(ICollection<T>, T)
Declaration
public static bool AddIfNotContains<T>(this ICollection<T> source, T item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<T><T> |
source |
|
T |
item |
|
Returns
Type Parameters
AddIfNotContains<T>(ICollection<T>, IEnumerable<T>)
Declaration
public static IEnumerable<T> AddIfNotContains<T>(this ICollection<T> source, IEnumerable<T> items)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<T><T> |
source |
|
System.Collections.Generic.IEnumerable<T><T> |
items |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><T> |
|
Type Parameters
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 |
System.Collections.Generic.ICollection<T><T> |
source |
|
System.Func<T, TResult><T, bool> |
predicate |
|
System.Func<TResult><T> |
itemFactory |
|
Returns
Type Parameters
IsNullOrEmpty<T>(ICollection<T>?)
Declaration
public static bool IsNullOrEmpty<T>(this ICollection<T>? source)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<T><T> |
source |
|
Returns
Type Parameters
RemoveAll<T>(ICollection<T>, IEnumerable<T>)
Declaration
public static void RemoveAll<T>(this ICollection<T> source, IEnumerable<T> items)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<T><T> |
source |
|
System.Collections.Generic.IEnumerable<T><T> |
items |
|
Type Parameters
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 |
System.Collections.Generic.ICollection<T><T> |
source |
|
System.Func<T, TResult><T, bool> |
predicate |
|
Returns
Type |
Description |
System.Collections.Generic.IList<T><T> |
|
Type Parameters