Class OptionalParameter<T>
A generic version of OptionalParameter that lets you specify the type of the dependency using generics syntax.
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class OptionalParameter<T> : OptionalParameter, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
Type Parameters
| Name | Description |
|---|---|
| T | Type of the dependency. |
Constructors
| Improve this Doc View SourceOptionalParameter()
Construct a new OptionalParameter<T>.
Declaration
public OptionalParameter()
OptionalParameter(String)
Construct a new OptionalParameter<T> with the given
name.
Declaration
public OptionalParameter(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Name of the dependency. |