Table of Contents

Class GenericResolvedArrayParameter

Namespace
Unity.Injection
Assembly
Unity.Abstractions.dll

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 string

The 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

string

Methods

Equals(Type)

public override bool Equals(Type type)

Parameters

type Type

Returns

bool

GetResolver<TContext>(Type, string)

protected override ResolveDelegate<TContext> GetResolver<TContext>(Type type, string name) where TContext : IResolveContext

Parameters

type Type
name string

Returns

ResolveDelegate<TContext>

Type Parameters

TContext