Click or drag to resize

ReadOnlyDictionaryTKey, TValue Class

This dictionary will throw an exception every time a change operation is attempted.
Inheritance Hierarchy
SystemObject
  MicaSystems.UtilsReadOnlyDictionaryTKey, TValue

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
Type of keys
TValue
Type of values

The ReadOnlyDictionaryTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the System.Collections.Generic.ICollection.
Public propertyIsReadOnly
Always true.
Public propertyItem
Gets or sets the element with the specified key.
Public propertyKeys
Gets an System.Collections.Generic.ICollection containing the keys of the System.Collections.Generic.IDictionary.
Public propertyValues
Gets an System.Collections.Generic.ICollection containing the values in the System.Collections.Generic.IDictionary.
Top
Methods
  NameDescription
Public methodContains
Determines whether the System.Collections.Generic.ICollection contains a specific value.
Public methodContainsKey
Determines whether the System.Collections.Generic.IDictionary contains an element with the specified key.
Public methodCopyTo
Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodCastToListTOverloaded.
Casts an enumerable to a strongly typed List.
(Defined by Utils_Linq.)
Public Extension MethodCastToListT(FuncObject, T)Overloaded.
Casts an enumerable to a strongly typed List.
(Defined by Utils_Linq.)
Public Extension MethodDistinctByKeyValuePairTKey, TValue, TIdentity
Returns distinct elements from a sequence by using a specified predicate to compare values.
(Defined by Utils_Linq.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodForEachKeyValuePairTKey, TValue
Performs the specified action on each element of the System.Collections.Generic.IEnumerable/T/.
(Defined by Utils_Linq.)
Public Extension MethodGetStringOverloaded.
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodGetStringKeyValuePairTKey, TValue(String)Overloaded.
Creates a string with all values in the List, separated by a string.

Uses ToString to convert objects.

(Defined by Utils_Linq.)
Public Extension MethodGetStringKeyValuePairTKey, TValue(String, FuncKeyValuePairTKey, TValue, String)Overloaded.
Creates a string with all values (converted using a function) in the List, separated by a string.
(Defined by Utils_Linq.)
Public Extension MethodIsEmptyKeyValuePairTKey, TValue
Checks if a list is empty.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodIsNotEmptyKeyValuePairTKey, TValue
Checks if a list is not empty.
(Defined by Utils_Linq.)
Public Extension MethodIsNullOrEmptyKeyValuePairTKey, TValue
Checks if a list is null or empty.
(Defined by Utils_Linq.)
Public Extension MethodNotNullKeyValuePairTKey, TValue
Filters a collection of values, excluding null values.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also