Share via


ReadOnlyDictionary Generic Class

Provides a read-only implementation of IDictionary.

Namespace: Microsoft.Practices.CompositeUI.Utility
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
<DefaultMemberAttribute("Item")> _
Public Class ReadOnlyDictionary(Of TKey, TValue)
    Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)), _
    IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
'Usage
Dim instance As ReadOnlyDictionary(Of TKey, TValue)
[DefaultMemberAttribute("Item")] 
public class ReadOnlyDictionary<TKey,TValue> : IDictionary<TKey,TValue>, ICollection<KeyValuePair<TKey,TValue>>, 
    IEnumerable<KeyValuePair<TKey,TValue>>, IEnumerable
[DefaultMemberAttribute(L"Item")] 
generic<typename TKey, typename TValue>
public ref class ReadOnlyDictionary : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, 
    IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.CompositeUI.Utility.ReadOnlyDictionary

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ReadOnlyDictionary Members
Microsoft.Practices.CompositeUI.Utility Namespace