Class GenericResolvedArrayParameter
A ParameterValue that lets you specify that an array containing the registered instances of a generic type parameter should be resolved.
public class GenericResolvedArrayParameter : GenericBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>
- Inheritance
-
GenericResolvedArrayParameter
- Implements
- Inherited Members
- Extension Methods
Constructors
GenericResolvedArrayParameter(string, params object[])
Create a new GenericResolvedArrayParameter instance that specifies that the given named generic parameter should be resolved.
public GenericResolvedArrayParameter(string genericParameterName, params object[] elementValues)
Parameters
genericParameterName
stringThe generic parameter name to resolve.
elementValues
object[]The values for the elements, that will be converted to ParameterValue objects.
Properties
ParameterTypeName
Name for the type represented by this ParameterValue. This may be an actual type name or a generic argument name.
public override string ParameterTypeName { get; }
Property Value
Methods
Equals(Type)
public override bool Equals(Type type)
Parameters
type
Type
Returns
GetResolver<TContext>(Type, string)
protected override ResolveDelegate<TContext> GetResolver<TContext>(Type type, string name) where TContext : IResolveContext
Parameters
Returns
- ResolveDelegate<TContext>
Type Parameters
TContext