Class DependencyOverride<T>
A convenience version of DependencyOverride that lets you specify the dependency type using generic syntax.
Inherited Members
Namespace: Unity.Resolution
Assembly: Unity.Abstractions.dll
Syntax
public class DependencyOverride<T> : DependencyOverride, IEquatable<NamedType>, IResolve
Type Parameters
Name | Description |
---|---|
T | Type of the dependency to override. |
Constructors
| Improve this Doc View SourceDependencyOverride(Object)
Construct a new DependencyOverride<T> object that will override the given dependency, and pass the given value.
Declaration
public DependencyOverride(object dependencyValue)
Parameters
Type | Name | Description |
---|---|---|
Object | dependencyValue |