Show / Hide Table of Contents

Class GenericResolvedArrayParameter

A ParameterValue that lets you specify that an array containing the registered instances of a generic type parameter should be resolved.

Inheritance
Object
ParameterValue
GenericBase
GenericResolvedArrayParameter
Implements
IEquatable<Type>
IResolverFactory<Type>
IResolverFactory<ParameterInfo>
Inherited Members
GenericBase.GetResolver<TContext>(Type)
GenericBase.GetResolver<TContext>(ParameterInfo)
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 GenericResolvedArrayParameter : GenericBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>

Constructors

| Improve this Doc View Source

GenericResolvedArrayParameter(String, Object[])

Create a new GenericResolvedArrayParameter instance that specifies that the given named generic parameter should be resolved.

Declaration
public GenericResolvedArrayParameter(string genericParameterName, params object[] elementValues)
Parameters
Type Name Description
String genericParameterName

The generic parameter name to resolve.

Object[] elementValues

The values for the elements, that will be converted to ParameterValue objects.

Properties

| Improve this Doc View Source

ParameterTypeName

Name for the type represented by this ParameterValue. This may be an actual type name or a generic argument name.

Declaration
public override string ParameterTypeName { get; }
Property Value
Type Description
String
Overrides
GenericBase.ParameterTypeName

Methods

| Improve this Doc View Source

Equals(Type)

Declaration
public override bool Equals(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
Boolean
Overrides
GenericBase.Equals(Type)
| Improve this Doc View Source

GetResolver<TContext>(Type, String)

Declaration
protected override ResolveDelegate<TContext> GetResolver<TContext>(Type type, string name)
    where TContext : IResolveContext
Parameters
Type Name Description
Type type
String name
Returns
Type Description
ResolveDelegate<TContext>
Type Parameters
Name Description
TContext
Overrides
GenericBase.GetResolver<TContext>(Type, String)

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