Click or drag to resize

ReadOnlyDictionaryTKey, TValue Class

Wrapper for a dictionary that is read only.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpReadOnlyDictionaryTKey, TValue

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class ReadOnlyDictionary<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
Type of key objects stored in this dictionary.
TValue
Type of values stored in this dictionary.

The ReadOnlyDictionaryTKey, TValue type exposes the following members.

Constructors
 NameDescription
Public methodReadOnlyDictionaryTKey, TValue Constructor to create a new read only dictionary that wraps a specific dictionary.
Top
Properties
 NameDescription
Public propertyCount Gets the number of objects in the dictionary.
Public propertyItem Get the object at the specified key.
Public propertyKeys Get the keys associated with this dictionary.
Public propertyValues Get the values associated with this dictionary.
Top
Methods
 NameDescription
Public methodContainsObsolete.
Determines if this dictionary contains the specified key.
Public methodContainsKey Determines if this dictionary contains the specified key.
Public methodContainsValue Determines if the dictionary contains the specified value/
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumerator Enumerator for the read only dictionary.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetObject Method to get the value at the specified key.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValue Get the value associated with the specified key.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also