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.
public class ResolvedArrayParameter : ParameterBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
- Inheritance
-
ResolvedArrayParameter
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ResolvedArrayParameter(Type, params object[])
Construct a new ResolvedArrayParameter that resolves to the given element type and collection of element values.
public ResolvedArrayParameter(Type elementType, params object[] elementValues)
Parameters
elementType
TypeThe type of elements to resolve.
elementValues
object[]The values for the elements, that will be converted to ParameterValue objects.
ResolvedArrayParameter(Type, Type, params object[])
Construct a new ResolvedArrayParameter that resolves to the given array and element types and collection of element values.
protected ResolvedArrayParameter(Type arrayParameterType, Type elementType, params object[] elementValues)
Parameters
arrayParameterType
TypeThe type for the array of elements to resolve.
elementType
TypeThe type of elements to resolve.
elementValues
object[]The values for the elements, that will be converted to ParameterValue objects.
Methods
GetResolver<TContext>(ParameterInfo)
public ResolveDelegate<TContext> GetResolver<TContext>(ParameterInfo info) where TContext : IResolveContext
Parameters
info
ParameterInfo
Returns
- ResolveDelegate<TContext>
Type Parameters
TContext
GetResolver<TContext>(Type)
public ResolveDelegate<TContext> GetResolver<TContext>(Type type) where TContext : IResolveContext
Parameters
type
Type
Returns
- ResolveDelegate<TContext>
Type Parameters
TContext