C# Class Ninject.Infrastructure.ReferenceEqualWeakReference

Weak reference that can be used in collections. It is equal to the object it references and has the same hash code.
Inheritance: System.WeakReference
Afficher le fichier Open project: ninject/Ninject Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool

Determines whether the specified object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

ReferenceEqualWeakReference ( object target ) : System

Initializes a new instance of the ReferenceEqualWeakReference class.

ReferenceEqualWeakReference ( object target, bool trackResurrection ) : System

Initializes a new instance of the ReferenceEqualWeakReference class.

Method Details

Equals() public méthode

Determines whether the specified object is equal to this instance.
/// The parameter is null. ///
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

ReferenceEqualWeakReference() public méthode

Initializes a new instance of the ReferenceEqualWeakReference class.
public ReferenceEqualWeakReference ( object target ) : System
target object The target.
Résultat System

ReferenceEqualWeakReference() public méthode

Initializes a new instance of the ReferenceEqualWeakReference class.
public ReferenceEqualWeakReference ( object target, bool trackResurrection ) : System
target object The target.
trackResurrection bool if set to true [track resurrection].
Résultat System