C# Class Castle.Core.DependencyModel

Show file Open project: castleproject/Windsor Class Usage Examples

Protected Properties

Property Type Description
initialized bool
parameterModel ParameterModel
reference string

Public Methods

Method Description
DependencyModel ( String dependencyKey, Type targetType, bool isOptional ) : System

Initializes a new instance of the DependencyModel class.

DependencyModel ( string dependencyKey, Type targetType, bool isOptional, bool hasDefaultValue, object defaultValue ) : System
Equals ( object obj ) : bool
GetHashCode ( ) : int
Init ( ParameterModelCollection parameters ) : void
ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

Private Methods

Method Description
GetParameterModelByType ( Type type, ParameterModelCollection parameters ) : ParameterModel
ObtainParameterModelByName ( ParameterModelCollection parameters ) : ParameterModel
ObtainParameterModelByType ( ParameterModelCollection parameters ) : ParameterModel

Method Details

DependencyModel() public method

Initializes a new instance of the DependencyModel class.
public DependencyModel ( String dependencyKey, Type targetType, bool isOptional ) : System
dependencyKey String The dependency key.
targetType System.Type Type of the target.
isOptional bool if set to true [is optional].
return System

DependencyModel() public method

public DependencyModel ( string dependencyKey, Type targetType, bool isOptional, bool hasDefaultValue, object defaultValue ) : System
dependencyKey string
targetType System.Type
isOptional bool
hasDefaultValue bool
defaultValue object
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Init() public method

public Init ( ParameterModelCollection parameters ) : void
parameters ParameterModelCollection
return void

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string

Property Details

initialized protected property

protected bool initialized
return bool

parameterModel protected property

protected ParameterModel,Castle.Core parameterModel
return ParameterModel

reference protected property

protected string reference
return string