CollectionExtensions Class

Summary

Extension methods for collection types.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["CollectionExtensions"] class Type type-node

Syntax

public static class CollectionExtensions

Methods

Name Value Summary
AddRange<T>(ICollection<T>, IEnumerable<T>) void
Adds a range of values to a collection.
static
RemoveAll<T>(ICollection<T>, Func<T, bool>) int
Removes all items that match a predicate from a collection.
static
RequireKeys<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey[]) void
Verifies that a dictionary contains all requires keys. An System.ArgumentException will be thrown if the specified keys are not all present in the dictionary.
static
GitHub