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

Static Public Member Functions

static void ForEach< T > (this IEnumerable< T > enumerable, Action< T > action)
 Perform action on all entries. More...
 
static HashSet< T > ToHashSet< T > (this IEnumerable< T > enumerable)
 Create a HashSet from enumerable. More...
 
static IEnumerable< T > WhereNotNull< T > (this IEnumerable< T > enumerable)
 Returns all entries which are not null. More...
 
static IEnumerable< T > Yield< T > (this T item)
 Creates an IEnumerable containing a single item. More...
 

Member Function Documentation

◆ ForEach< T >()

static void Megapop.MegaCore.IEnumerableExt.ForEach< T > ( this IEnumerable< T >  enumerable,
Action< T >  action 
)
inlinestatic

Perform action on all entries.

◆ ToHashSet< T >()

static HashSet< T > Megapop.MegaCore.IEnumerableExt.ToHashSet< T > ( this IEnumerable< T >  enumerable)
inlinestatic

Create a HashSet from enumerable.

◆ WhereNotNull< T >()

static IEnumerable< T > Megapop.MegaCore.IEnumerableExt.WhereNotNull< T > ( this IEnumerable< T >  enumerable)
inlinestatic

Returns all entries which are not null.

Type Constraints
T :class 

◆ Yield< T >()

static IEnumerable< T > Megapop.MegaCore.IEnumerableExt.Yield< T > ( this T  item)
inlinestatic

Creates an IEnumerable containing a single item.


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