Class InjectionField
Inheritance
InjectionField
Implements
Inherited Members
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class InjectionField : MemberInfoBase<FieldInfo>, IEquatable<FieldInfo>
Constructors
| Improve this Doc View SourceInjectionField(String, Object)
Configure the container to inject the given field name, using the value supplied.
Declaration
public InjectionField(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of property to inject. |
Object | value | InjectionParameterValue for property. |
InjectionField(String, ResolutionOption)
Configure the container to inject the given field name.
Declaration
public InjectionField(string name, ResolutionOption option = ResolutionOption.Required)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of property to inject. |
ResolutionOption | option | Tells Unity if this field is optional. |
Properties
| Improve this Doc View SourceMemberType
Declaration
protected override Type MemberType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Unity.Injection.MemberInfoBase<System.Reflection.FieldInfo>.MemberType
Methods
| Improve this Doc View SourceDeclaredMember(Type, String)
Declaration
protected override FieldInfo DeclaredMember(Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
Type | type | |
String | name |
Returns
Type | Description |
---|---|
FieldInfo |
Overrides
Unity.Injection.MemberInfoBase<System.Reflection.FieldInfo>.DeclaredMember(System.Type, System.String)
|
Improve this Doc
View Source
DeclaredMembers(Type)
Declaration
public override IEnumerable<FieldInfo> DeclaredMembers(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
IEnumerable<FieldInfo> |
Overrides
Unity.Injection.InjectionMember<System.Reflection.FieldInfo, System.Object>.DeclaredMembers(System.Type)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |