DependencyModel
Represents a dependency (other component or a
fixed value available through external configuration).
Gets or sets the dependency key.
Gets or sets the type of the dependency.
Gets or sets whether this dependency is optional.
Gets the service type of the dependency.
This is the same type as TargetType or if TargetType is by ref,
then it's the element type of the reference. (in other words if dependency
is out IFoo foo this will be IFoo, while TargetType will be &IFoo);
Gets the type of the target.
public DependencyModel(DependencyType dependencyType, string dependencyKey, Type targetType, bool isOptional)
Initializes a new instance of the DependencyModel class.
public DependencyModel(DependencyType dependencyType, string dependencyKey, Type targetType, bool isOptional, bool hasDefaultValue, object defaultValue)