C# Class System.ComponentModel.WeakHashtable.EqualityWeakReference

A subclass of WeakReference that overrides GetHashCode and Equals so that the weak reference returns the same equality semantics as the object it wraps. This will always return the object's hash code and will return True for a Equals comparison of the object it is wrapping. If the object it is wrapping has finalized, Equals always returns false.
Inheritance: WeakReference
Show file Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
Equals ( object o ) : bool
GetHashCode ( ) : int

Private Methods

Method Description
EqualityWeakReference ( object o ) : System

Method Details

Equals() public method

public Equals ( object o ) : bool
o object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int