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
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0

Méthodes publiques

Méthode Description
Equals ( object o ) : bool
GetHashCode ( ) : int

Private Methods

Méthode Description
EqualityWeakReference ( object o ) : System

Method Details

Equals() public méthode

public Equals ( object o ) : bool
o object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int