ConditionalWeakTable<TKey, TValue> Methods

 

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodAdd(TKey, TValue)

Adds a key to the table.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the ConditionalWeakTable<TKey, TValue> object. (Overrides Object::Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetOrCreateValue(TKey)

Atomically searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes the default constructor of the class that represents the table's value to create a value that is bound to the specified key.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetValue(TKey, ConditionalWeakTable<TKey, TValue>::CreateValueCallback^)

Atomically searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes a callback method to create a value that is bound to the specified key.

System_CAPS_pubmethodRemove(TKey)

Removes a key and its value from the table.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(TKey, TValue%)

Gets the value of the specified key.

Return to top
Show: