C# 클래스 Hiro.Containers.Dependency

Represents a service dependency.
상속: IDependency
파일 보기 프로젝트 열기: philiplaureano/Hiro 1 사용 예제들

공개 메소드들

메소드 설명
Dependency ( Type serviceType ) : System

Initializes a new instance of the Dependency class.

Dependency ( Type serviceType, string serviceName ) : System

Initializes a new instance of the Dependency class.

Equals ( object obj ) : bool

Determines whether or not the current object is equal to the other object.

GetHashCode ( ) : int

Computes the hash code using the ServiceName and ServiceType.

ToString ( ) : string

Displays the dependency as a string.

메소드 상세

Dependency() 공개 메소드

Initializes a new instance of the Dependency class.
public Dependency ( Type serviceType ) : System
serviceType System.Type The service type.
리턴 System

Dependency() 공개 메소드

Initializes a new instance of the Dependency class.
public Dependency ( Type serviceType, string serviceName ) : System
serviceType System.Type The service type.
serviceName string The service name.
리턴 System

Equals() 공개 메소드

Determines whether or not the current object is equal to the other object.
public Equals ( object obj ) : bool
obj object The object that will be compared with the current object.
리턴 bool

GetHashCode() 공개 메소드

Computes the hash code using the ServiceName and ServiceType.
public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

Displays the dependency as a string.
public ToString ( ) : string
리턴 string