C# Class Hiro.Containers.Dependency

Represents a service dependency.
Inheritance: IDependency
显示文件 Open project: philiplaureano/Hiro Class Usage Examples

Public Methods

Method Description
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.

Method Details

Dependency() public method

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

Dependency() public method

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.
return System

Equals() public method

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.
return bool

GetHashCode() public method

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

ToString() public method

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