Show / Hide Table of Contents

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
Object
ParameterValue
ParameterBase
ResolvedArrayParameter
ResolvedArrayParameter<TElement>
Implements
IEquatable<Type>
IResolverFactory<Type>
IResolverFactory<ParameterInfo>
Inherited Members
ParameterBase.ParameterType
ParameterBase.Equals(Type)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class ResolvedArrayParameter : ParameterBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>

Constructors

| Improve this Doc View Source

ResolvedArrayParameter(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.

| Improve this Doc View Source

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 Source

GetResolver<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
| Improve this Doc View Source

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

Implements

System.IEquatable<T>
IResolverFactory<TMemberInfo>
IResolverFactory<TMemberInfo>

Extension Methods

InjectionMatching.Matches(Object, Type)
InjectionMatching.MatchesObject(Object, Type)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2020 .NET Foundation and Contributors. All Rights Reserved