Class InjectionProperty
This class stores information about which properties to inject, and will configure the container accordingly.
public class InjectionProperty : MemberInfoBase<PropertyInfo>, IEquatable<PropertyInfo>
- Inheritance
-
InjectionProperty
- Implements
- Inherited Members
- Extension Methods
Constructors
InjectionProperty(string, object)
Configure the container to inject the given property name, using the value supplied.
public InjectionProperty(string name, object value)
Parameters
InjectionProperty(string, ResolutionOption)
Configure the container to inject the given property name, using the value supplied.
public InjectionProperty(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 PropertyInfo DeclaredMember(Type type, string name)
Parameters
Returns
DeclaredMembers(Type)
public override IEnumerable<PropertyInfo> DeclaredMembers(Type type)
Parameters
type
Type
Returns
ToString()
public override string ToString()