Class InjectionMethod
An InjectionMember that configures the container to call a method as part of buildup.
Inheritance
InjectionMethod
Implements
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class InjectionMethod : MethodBase<MethodInfo>, IEquatable<MethodInfo>
Constructors
| Improve this Doc View SourceInjectionMethod(String, Object[])
Create a new InjectionMethod instance which will configure the container to call the given methods with the given parameters.
Declaration
public InjectionMethod(string name, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the method to call. |
Object[] | arguments | Parameter values for the method. |
Methods
| Improve this Doc View SourceDeclaredMembers(Type)
Declaration
public override IEnumerable<MethodInfo> DeclaredMembers(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
IEnumerable<MethodInfo> |
Overrides
Unity.Injection.InjectionMember<System.Reflection.MethodInfo, System.Object[]>.DeclaredMembers(System.Type)
|
Improve this Doc
View Source
SelectMember(Type, InjectionMember)
Declaration
protected override MethodInfo SelectMember(Type type, InjectionMember _)
Parameters
Type | Name | Description |
---|---|---|
Type | type | |
InjectionMember | _ |
Returns
Type | Description |
---|---|
MethodInfo |
Overrides
Unity.Injection.InjectionMember<System.Reflection.MethodInfo, System.Object[]>.SelectMember(System.Type, Unity.Injection.InjectionMember)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |