次の方法で共有


DictionaryExtensions クラス

定義

注意事項

Not recommended for external use.

クラスの IDictionary<TKey,TValue> 拡張メソッド。

[System.Obsolete("Not recommended for external use.")]
public static class DictionaryExtensions
[<System.Obsolete("Not recommended for external use.")>]
type DictionaryExtensions = class
Public Module DictionaryExtensions
継承
DictionaryExtensions
属性

メソッド

GetOrAddNonNull<TKey,TValue>(ConcurrentDictionary<TKey,TValue>, TKey, Func<TKey,TValue>)
古い.

指定したキーに関連付けられた値を取得または追加します。

GetValueOrAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, Func<TKey,TValue>)
古い.

指定したキーに関連付けられた値を取得または追加します。

GetValueOrDefault<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)
古い.

指定したキーに関連付けられている値を取得します。

TryRemove<TKey,TValue>(Dictionary<TKey,TValue>, TKey, TValue)
古い.

指定したキーに関連付けられている値を削除します。

適用対象