KnownRelationship Class

Simple Injector
A known relationship defines a relationship between two types. The Diagnostics Debug View uses this information to spot possible misconfigurations.
Inheritance Hierarchy

SystemObject
  SimpleInjector.AdvancedKnownRelationship

Namespace:  SimpleInjector.Advanced
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.0.0
Syntax

public sealed class KnownRelationship : IEquatable<KnownRelationship>

The KnownRelationship type exposes the following members.

Constructors

  NameDescription
Public methodKnownRelationship
Initializes a new instance of the KnownRelationship class.
Top
Properties

  NameDescription
Public propertyDependency
Gets the type that the parent depends on (it is injected into the parent).
Public propertyImplementationType
Gets the implementation type of the parent type of the relationship.
Public propertyLifestyle
Gets the lifestyle of the parent type of the relationship.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified KnownRelationship is equal to the current KnownRelationship.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Top
See Also

Reference