C# Class System.ComponentModel.WeakHashtable

This is a hashtable that stores object keys as weak references. It monitors memory usage and will periodically scavenge the hash table to clean out dead references.
Inheritance: System.Collections.Hashtable
Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Remove ( object key ) : void
SetWeak ( object key, object value ) : void

Private Methods

Method Description
ScavengeKeys ( ) : void
WeakHashtable ( ) : System

Method Details

Clear() public method

public Clear ( ) : void
return void

Remove() public method

public Remove ( object key ) : void
key object
return void

SetWeak() public method

public SetWeak ( object key, object value ) : void
key object
value object
return void