ReadOnlyDictionaryTKey, TValue Class |
Namespace: MicaSystems.Utils
public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
The ReadOnlyDictionaryTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
![]() | ReadOnlyDictionaryTKey, TValue |
Initializes a new instance of ReadOnlyDictionary.
|
![]() | ReadOnlyDictionaryTKey, TValue(IDictionaryTKey, TValue) |
Initializes a new instance of ReadOnlyDictionary from an existing dictionary.
Note : data are not duplicated. |
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of elements contained in the System.Collections.Generic.ICollection.
|
![]() | IsReadOnly |
Always true.
|
![]() | Item |
Gets or sets the element with the specified key.
|
![]() | Keys |
Gets an System.Collections.Generic.ICollection containing the keys of
the System.Collections.Generic.IDictionary.
|
![]() | Values |
Gets an System.Collections.Generic.ICollection containing the values in
the System.Collections.Generic.IDictionary.
|
Name | Description | |
---|---|---|
![]() | Contains |
Determines whether the System.Collections.Generic.ICollection contains
a specific value.
|
![]() | ContainsKey |
Determines whether the System.Collections.Generic.IDictionary
contains an element with the specified key.
|
![]() | CopyTo |
Copies the elements of the System.Collections.Generic.ICollection to an
System.Array, starting at a particular System.Array index.
|
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
![]() | AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) |
![]() | CastToListT | Overloaded.
Casts an enumerable to a strongly typed List.
(Defined by Utils_Linq.) |
![]() | CastToListT(FuncObject, T) | Overloaded.
Casts an enumerable to a strongly typed List.
(Defined by Utils_Linq.) |
![]() | DistinctByKeyValuePairTKey, TValue, TIdentity |
Returns distinct elements from a sequence by using a specified predicate to compare values.
(Defined by Utils_Linq.) |
![]() | EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) |
![]() | EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) |
![]() | ForEachKeyValuePairTKey, TValue |
Performs the specified action on each element of the System.Collections.Generic.IEnumerable/T/.
(Defined by Utils_Linq.) |
![]() | GetString | Overloaded.
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) |
![]() | GetStringKeyValuePairTKey, TValue(String) | Overloaded.
Creates a string with all values in the List, separated by a string.
(Defined by Utils_Linq.)Uses ToString to convert objects. |
![]() | GetStringKeyValuePairTKey, 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.) |
![]() | IsEmptyKeyValuePairTKey, TValue |
Checks if a list is empty.
(Defined by Utils_Linq.) |
![]() | IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) |
![]() | IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) |
![]() | IsNotEmptyKeyValuePairTKey, TValue |
Checks if a list is not empty.
(Defined by Utils_Linq.) |
![]() | IsNullOrEmptyKeyValuePairTKey, TValue |
Checks if a list is null or empty.
(Defined by Utils_Linq.) |
![]() | NotNullKeyValuePairTKey, TValue |
Filters a collection of values, excluding null values.
(Defined by Utils_Linq.) |
![]() | Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) |
![]() | Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) |
![]() | SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |
![]() | SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |
![]() | SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |