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: 5.3.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(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(KnownRelationship)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Top
See Also

Reference