Show / Hide Table of Contents

Class ResolvedParameter

A class that stores a name and type, and generates a resolver object that resolves the parameter via the container.

Inheritance
Object
ParameterValue
ParameterBase
ResolvedParameter
ResolvedParameter<TParameter>
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 ResolvedParameter : ParameterBase, IEquatable<Type>, IResolverFactory<Type>, IResolverFactory<ParameterInfo>

Constructors

| Improve this Doc View Source

ResolvedParameter()

Declaration
public ResolvedParameter()
| Improve this Doc View Source

ResolvedParameter(String)

Construct a new ResolvedParameter that resolves the given type and name.

Declaration
public ResolvedParameter(string name)
Parameters
Type Name Description
String name

Name to use when resolving parameter.

| Improve this Doc View Source

ResolvedParameter(Type)

Construct a new ResolvedParameter that resolves to the given type.

Declaration
public ResolvedParameter(Type parameterType)
Parameters
Type Name Description
Type parameterType

Type of this parameter.

| Improve this Doc View Source

ResolvedParameter(Type, String)

Construct a new ResolvedParameter that resolves the given type and name.

Declaration
public ResolvedParameter(Type parameterType, string name)
Parameters
Type Name Description
Type parameterType

Type of this parameter.

String name

Name to use when resolving parameter.

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