Enumerable

Extensions

IEnumerable.Each(Action<T> action)

Replace the following

foreach(var item in items) 
{
  Debug.WriteLine(item);
}

with

items.Each(item => Debug,WriteLine(item));

IEnumerable.IsNullOrEmpty()

Replace the following

if (collection == null || !collection.Any())
{
  collection = new List<string>();
}

with

if (collection.IsNullOrEmpty())
{
  collection = new List<string>();
}

results matching ""

    No results matching ""