C# Класс 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.
Наследование: System.WeakReference
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Equals() публичный Метод

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.
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

ReferenceEqualWeakReference() публичный Метод

Initializes a new instance of the ReferenceEqualWeakReference class.
public ReferenceEqualWeakReference ( object target ) : System
target object The target.
Результат System

ReferenceEqualWeakReference() публичный Метод

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].
Результат System