Skip to main content
Version: 0.1.0

Class DictionaryExtensions

Namespace: ReadyM.Api.Compat
Assembly: ReadyM.Api.dll

public static class DictionaryExtensions

Inheritance

objectDictionaryExtensions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

GetValueOrDefault<TKey, TValue>(Dictionary<TKey, TValue>, TKey)

public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> self, TKey key) where TKey : notnull

Parameters

self Dictionary<TKey, TValue>

key TKey

Returns

TValue?

Type Parameters

TKey

TValue

  • Methods
    • GetValueOrDefault<TKey, TValue>(Dictionary<TKey, TValue>, TKey)