Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.ICollectionExt Class Reference

Static Public Member Functions

static bool IsNullOrEmpty< T > ([NotNullWhen(false)] this ICollection< T > source)
 Returns true if the collection is null or has zero items. More...
 
static void AddRange< T > (this ICollection< T > collection, IEnumerable< T > items)
 Add all items to collection. More...
 
static void SetRange< T > (this ICollection< T > collection, IEnumerable< T > items)
 Clear the collection and add all items. More...
 

Member Function Documentation

◆ AddRange< T >()

static void Megapop.MegaCore.ICollectionExt.AddRange< T > ( this ICollection< T >  collection,
IEnumerable< T >  items 
)
inlinestatic

Add all items to collection.

◆ IsNullOrEmpty< T >()

static bool Megapop.MegaCore.ICollectionExt.IsNullOrEmpty< T > ( [NotNullWhen(false)] this ICollection< T >  source)
inlinestatic

Returns true if the collection is null or has zero items.

◆ SetRange< T >()

static void Megapop.MegaCore.ICollectionExt.SetRange< T > ( this ICollection< T >  collection,
IEnumerable< T >  items 
)
inlinestatic

Clear the collection and add all items.


The documentation for this class was generated from the following file: