Class InjectionField
public class InjectionField : MemberInfoBase<FieldInfo>, IEquatable<FieldInfo>
- Inheritance
-
InjectionField
- Implements
- Inherited Members
- Extension Methods
Constructors
InjectionField(string, object)
Configure the container to inject the given field name, using the value supplied.
public InjectionField(string name, object value)
Parameters
InjectionField(string, ResolutionOption)
Configure the container to inject the given field name.
public InjectionField(string name, ResolutionOption option = ResolutionOption.Required)
Parameters
name
stringName of property to inject.
option
ResolutionOptionTells Unity if this field is optional.
Properties
MemberType
protected override Type MemberType { get; }
Property Value
Methods
DeclaredMember(Type, string)
protected override FieldInfo DeclaredMember(Type type, string name)
Parameters
Returns
DeclaredMembers(Type)
public override IEnumerable<FieldInfo> DeclaredMembers(Type type)
Parameters
type
Type
Returns
ToString()
public override string ToString()