EnumerableExtensions Class

Summary

Several extension methods when using IEnumerable.
Assembly
Cake.Incubator.dll
Namespace
Cake.Incubator.EnumerableExtensions
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["EnumerableExtensions"] class Type type-node

Syntax

public static class EnumerableExtensions

Attributes

Type Description
CakeNamespaceImportAttribute

Methods

Name Value Summary
Distinct<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) IEnumerable<TSource>
Select a distinct instance of an object from a collection of objects.
static
Each<T>(IEnumerable<T>, Action<T>) void
Performs an action on a collection of items
static
IsIn<T>(T, T[]) bool
Checks if the source is contained in a list
static
IsNullOrEmpty<T>(IEnumerable<T>) bool
Checks whether specified IEnumerable is null or contains no elements
static
IsNullOrEmpty<T>(IList<T>) bool
Checks whether specified IList is null or contains no elements
static
IsNullOrEmpty<T>(T[]) bool
Checks whether specified array is null or contains no elements
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin