InjectionConsumerInfo Class

Simple Injector
Contextual information the a dependency and its direct consumer for which the dependency is injected into. The consumer's type is given by the ImplementationType property, where the Target property gives access to the consumer's target element (property or constructor argument) in which the dependency will be injected, and the dependency's type information.
Inheritance Hierarchy

SystemObject
  SimpleInjector.AdvancedApiObject
    SimpleInjectorInjectionConsumerInfo

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.0.0
Syntax

public class InjectionConsumerInfo : ApiObject, 
	IEquatable<InjectionConsumerInfo>

The InjectionConsumerInfo type exposes the following members.

Constructors

  NameDescription
Public methodInjectionConsumerInfo(ParameterInfo)
Initializes a new instance of the InjectionConsumerInfo class.
Public methodInjectionConsumerInfo(Type, PropertyInfo)
Initializes a new instance of the InjectionConsumerInfo class.
Top
Properties

  NameDescription
Public propertyImplementationType
Gets the implementation type of the consumer of the component that should be created.
Public propertyTarget
Gets the information about the consumer's target in which the dependency is injected. The target can be either a property or a constructor parameter.
Top
Methods

  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ApiObjectEquals(Object).)
Public methodEquals(InjectionConsumerInfo)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ApiObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodToString
Returns a string that represents the current object.
(Overrides ApiObjectToString.)
Top
See Also

Reference