Skip to content

TakeAndRemove Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

Dictionary<TKey, TValue> TakeAndRemove(IDictionary<TKey, TValue> source, int count) ​

csharp
Dictionary<TKey, TValue> TakeAndRemove(IDictionary<TKey, TValue> source, int count)

Returns the number of items in Count and removes them from the source dictionary

Parameters ​

NameDescription
countNumber of items to Take
sourceThe source Dictionary

Returns ​

Dictionary<TKey, TValue>