Table of Contents

Class InjectionConstructor

Namespace
Unity.Injection
Assembly
Unity.Abstractions.dll

A class that holds the collection of information for a constructor, so that the container can be configured to call this constructor.

public class InjectionConstructor : MethodBase<ConstructorInfo>, IEquatable<ConstructorInfo>
Inheritance
InjectionConstructor
Implements
Inherited Members
Extension Methods

Constructors

InjectionConstructor(params object[])

Create a new instance of InjectionConstructor that looks for a constructor with the given set of parameters.

public InjectionConstructor(params object[] arguments)

Parameters

arguments object[]

The values for the constructor's parameters, that will be used to create objects.

InjectionConstructor(ConstructorInfo, params object[])

public InjectionConstructor(ConstructorInfo info, params object[] arguments)

Parameters

info ConstructorInfo
arguments object[]

Methods

DeclaredMembers(Type)

public override IEnumerable<ConstructorInfo> DeclaredMembers(Type type)

Parameters

type Type

Returns

IEnumerable<ConstructorInfo>

SelectMember(Type, InjectionMember)

protected override ConstructorInfo SelectMember(Type type, InjectionMember _)

Parameters

type Type
_ InjectionMember

Returns

ConstructorInfo

ToString()

public override string ToString()

Returns

string