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
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

공개 메소드들

메소드 설명
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