Click or drag to resize

YDefaultableDictionaryTKey, TValue Class

Represent a defaultable Dictionnary.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryTKey, TValue
    Upsilon.Common.LibraryYDefaultableDictionaryTKey, TValue

Namespace: Upsilon.Common.Library
Assembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax
C#
public class YDefaultableDictionary<TKey, TValue> : Dictionary<TKey, TValue>

Type Parameters

TKey
The type of the keys in the dictionary.
TValue
The type of the values in the dictionary.

The YDefaultableDictionaryTKey, TValue type exposes the following members.

Constructors
 NameDescription
Public methodYDefaultableDictionaryTKey, TValue Creates a new instance of a YDefaultableDictionary.
Top
Properties
 NameDescription
Public propertyComparerGets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
(Inherited from DictionaryTKey, TValue)
Public propertyCountGets the number of key/value pairs contained in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Public propertyItem Get or Set the value of a given key in the dictionary.
Public propertyKeysGets a collection containing the keys in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Public propertyValuesGets a collection containing the values in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Top
Methods
 NameDescription
Public methodAddAdds the specified key and value to the dictionary.
(Inherited from DictionaryTKey, TValue)
Public methodClearRemoves all keys and values from the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Public methodContainsKeyDetermines whether the DictionaryTKey, TValue contains the specified key.
(Inherited from DictionaryTKey, TValue)
Public methodContainsValueDetermines whether the DictionaryTKey, TValue contains a specific value.
(Inherited from DictionaryTKey, TValue)
Public methodEnsureCapacityEnsures that the dictionary can hold up to a specified number of entries without any further expansion of its backing storage.
(Inherited from DictionaryTKey, TValue)
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 methodGetEnumeratorReturns an enumerator that iterates through the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnDeserializationImplements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from DictionaryTKey, TValue)
Public methodRemove(TKey)Removes the value with the specified key from the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, TValue)
Public methodRemove(TKey, TValue)Removes the value with the specified key from the DictionaryTKey, TValue, and copies the element to the value parameter.
(Inherited from DictionaryTKey, TValue)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTrimExcessSets the capacity of this dictionary to what it would be if it had been originally initialized with all its entries.
(Inherited from DictionaryTKey, TValue)
Public methodTrimExcess(Int32)Sets the capacity of this dictionary to hold up a specified number of entries without any further expansion of its backing storage.
(Inherited from DictionaryTKey, TValue)
Public methodTryAddAttempts to add the specified key and value to the dictionary.
(Inherited from DictionaryTKey, TValue)
Public methodTryGetValueGets the value associated with the specified key.
(Inherited from DictionaryTKey, TValue)
Top
Extension Methods
 NameDescription
Public Extension MethodGetMD5HashCode Get the MD5 Hash code of an Objectobj as a string.
(Defined by YObjectExtentionMethods)
Public Extension MethodSerializeObject Serialize an ObjecttoSerialize.
(Defined by YSerializationCenter)
Top
See Also