Share via


ReadOnlyDictionary45<TKey,TValue> クラス

定義

別のジェネリック ディクショナリの読み取り専用ラッパー。

[System.Serializable]
public sealed class ReadOnlyDictionary45<TKey,TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>, System.Collections.Generic.IDictionary<TKey,TValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>, System.Collections.IDictionary
[<System.Serializable>]
type ReadOnlyDictionary45<'Key, 'Value> = class
    interface IDictionary<'Key, 'Value>
    interface ICollection<KeyValuePair<'Key, 'Value>>
    interface seq<KeyValuePair<'Key, 'Value>>
    interface IEnumerable
    interface IDictionary
    interface ICollection
Public NotInheritable Class ReadOnlyDictionary45(Of TKey, TValue)
Implements ICollection(Of KeyValuePair(Of TKey, TValue)), IDictionary, IDictionary(Of TKey, TValue), IEnumerable(Of KeyValuePair(Of TKey, TValue))

型パラメーター

TKey

キーに使用する型。

TValue

値に使用する型

継承
ReadOnlyDictionary45<TKey,TValue>
属性
実装

コンストラクター

ReadOnlyDictionary45<TKey,TValue>(IDictionary<TKey,TValue>)

指定した IDictionary から読み取り専用ディクショナリを作成します

プロパティ

Count

ディクショナリ内の項目の数

Item[TKey]

キーを使用してインデックスを作成して値にアクセスできるようにします

Keys

辞書内のキー

Values

ディクショナリ内の値

メソッド

ContainsKey(TKey)

キーがディクショナリに存在するかどうかを報告します

GetEnumerator()

列挙子を返します。

TryGetValue(TKey, TValue)

指定したキーの値を取得します (存在する場合)

明示的なインターフェイスの実装

ICollection.CopyTo(Array, Int32)

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection.IsSynchronized

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection.SyncRoot

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue>)

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.Clear()

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>)

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32)

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly

別のジェネリック ディクショナリの読み取り専用ラッパー。

ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Add(Object, Object)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Clear()

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Contains(Object)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.GetEnumerator()

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.IsFixedSize

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.IsReadOnly

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Item[Object]

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Keys

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Remove(Object)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary.Values

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary<TKey,TValue>.Add(TKey, TValue)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary<TKey,TValue>.Item[TKey]

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary<TKey,TValue>.Keys

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary<TKey,TValue>.Remove(TKey)

別のジェネリック ディクショナリの読み取り専用ラッパー。

IDictionary<TKey,TValue>.Values

別のジェネリック ディクショナリの読み取り専用ラッパー。

IEnumerable.GetEnumerator()

別のジェネリック ディクショナリの読み取り専用ラッパー。

拡張メソッド

GetValueOrAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, Func<TKey,TValue>)

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

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

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

AsFormattedString<TKey,TValue>(IDictionary<TKey,TValue>)

別のジェネリック ディクショナリの読み取り専用ラッパー。

適用対象