IDictionaryExtensions Class
Extensions of IDictionary<TKey, TValue>.
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["IDictionaryExtensions"] class Type type-node

Syntax

public static class IDictionaryExtensions

Methods

Name Return Value Summary
ToNameValueCollection<TKey, TValue>(IDictionary<TKey, TValue>) NameValueCollection
Converts the IDictionary<TKey, TValue> to the NameValueCollection.
static
ToShallowClone<TKey, TValue>(IDictionary<TKey, TValue>?) IDictionary<TKey, TValue>
Converts the IDictionary<TKey, TValue> to a shallow clone.
static
TryGetValueWithKey<TKey, TValue>(IDictionary<TKey, TValue>?, TKey, bool) TValue
Tries to get value with the specified key.
static
TryGetValueWithKey<TKey, TValue>(IDictionary<TKey, TValue>?, TKey) TValue
Tries to get value with the specified key.
static
WithPair<TKey, TValue>(IDictionary<TKey, TValue>?, KeyValuePair<TKey, TValue>?) IDictionary<TKey, TValue>
Returns the IDictionary<TKey, TValue> with the specified pair.
static
WithPair<TKey, TValue>(IDictionary<TKey, TValue>?, TKey, TValue) IDictionary<TKey, TValue>
Returns the IDictionary<TKey, TValue> with the specified pair.
static
WithPairs<TKey, TValue>(IDictionary<TKey, TValue>?, IEnumerable<KeyValuePair<TKey, TValue>>?) IDictionary<TKey, TValue>
Returns the IDictionary<TKey, TValue> with the specified pairs.
static