Click or drag to resize

ReadOnlyCollectionTKey, TValue Class

Read only collection used to store objects.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpProReadOnlyCollectionTKey, TValue
    Crestron.SimplSharpProCrestronCollectionT
    Crestron.SimplSharpProSmartObjectCollection

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

Type Parameters

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

The ReadOnlyCollectionTKey, TValue type exposes the following members.

Constructors
 NameDescription
Public methodReadOnlyCollectionTKey, TValue Constructor to create a new read only collection.
Public methodReadOnlyCollectionTKey, TValue(IEqualityComparerTKey) Constructor to create a new read only collection where the equality comparer can be passed in.
Top
Properties
 NameDescription
Public propertyCount Gets the number of objects in the this collection.
Public propertyItem Get the object at the specified number.
Public propertyKeys Get the keys associated with this collection.
Public propertyValues Get the values associated with this collection.
Top
Methods
 NameDescription
Protected methodAdd Method to add something to the collection.
Public methodContains Determines if this collection contains the specified key.
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 collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetObject Method to get object at the specified number.
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
Fields
 NameDescription
Protected field_InternalDictionary Internal storage of the objects
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also