Class GenericParameter
A ParameterValue that lets you specify that an instance of a generic type parameter should be resolved.
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class GenericParameter : GenericBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
Constructors
| Improve this Doc View SourceGenericParameter(String)
Create a new GenericParameter instance that specifies that the given named generic parameter should be resolved.
Declaration
public GenericParameter(string genericParameterName)
Parameters
Type | Name | Description |
---|---|---|
String | genericParameterName | The generic parameter name to resolve. |
GenericParameter(String, String)
Create a new GenericParameter instance that specifies that the given named generic parameter should be resolved.
Declaration
public GenericParameter(string genericParameterName, string name)
Parameters
Type | Name | Description |
---|---|---|
String | genericParameterName | The generic parameter name to resolve. |
String | name | Registration name to use when looking up in the container. |