DependencyMetadataTService Class

Simple Injector
Provides access to an injected dependency and its metadata.
Inheritance Hierarchy

SystemObject
  SimpleInjector.AdvancedApiObject
    SimpleInjectorDependencyMetadataTService

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

public sealed class DependencyMetadata<TService> : ApiObject, 
	IEquatable<DependencyMetadata<TService>>
where TService : class

Type Parameters

TService
The dependency type.

The DependencyMetadataTService type exposes the following members.

Properties

  NameDescription
Public propertyDependency
Gets the type that the parent depends on (it is injected into the parent).
Public propertyImplementationType
Gets the type of the implementation that is created by the container and for which the decorator is about to be applied. The original implementation type will be returned, even if other decorators have already been applied to this type. Please note that the implementation type can not always be determined. In that case the closed generic service type will be returned.
Top
Methods

  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ApiObjectEquals(Object).)
Public methodEquals(DependencyMetadataTService)
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 methodGetInstance
Produces an instance.
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from ApiObject.)
Top
See Also

Reference