Class ResolvedArrayParameter
A class that stores a type, and generates a resolver object that resolves all the named instances or the type registered in a container.
Inheritance
ResolvedArrayParameter
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class ResolvedArrayParameter : ParameterBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
Constructors
| Improve this Doc View SourceResolvedArrayParameter(Type, Object[])
Construct a new ResolvedArrayParameter that resolves to the given element type and collection of element values.
Declaration
public ResolvedArrayParameter(Type elementType, params object[] elementValues)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | elementType | The type of elements to resolve. |
| Object[] | elementValues | The values for the elements, that will be converted to ParameterValue objects. |
ResolvedArrayParameter(Type, Type, Object[])
Construct a new ResolvedArrayParameter that resolves to the given array and element types and collection of element values.
Declaration
protected ResolvedArrayParameter(Type arrayParameterType, Type elementType, params object[] elementValues)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | arrayParameterType | The type for the array of elements to resolve. |
| Type | elementType | The type of elements to resolve. |
| Object[] | elementValues | The values for the elements, that will be converted to ParameterValue objects. |
Methods
| Improve this Doc View SourceGetResolver<TContext>(ParameterInfo)
Declaration
public ResolveDelegate<TContext> GetResolver<TContext>(ParameterInfo info)
where TContext : IResolveContext
Parameters
| Type | Name | Description |
|---|---|---|
| ParameterInfo | info |
Returns
| Type | Description |
|---|---|
| ResolveDelegate<TContext> |
Type Parameters
| Name | Description |
|---|---|
| TContext |
GetResolver<TContext>(Type)
Declaration
public ResolveDelegate<TContext> GetResolver<TContext>(Type type)
where TContext : IResolveContext
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| ResolveDelegate<TContext> |
Type Parameters
| Name | Description |
|---|---|
| TContext |