InstanceInitializationData Structure

Simple Injector
Contains data that can be used to initialize a created instance. This data includes the actual created Instance and the Context information about the created instance.

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

public struct InstanceInitializationData : IEquatable<InstanceInitializationData>

The InstanceInitializationData type exposes the following members.

Constructors

  NameDescription
Public methodInstanceInitializationData
Initializes a new instance of the InstanceInitializationData struct.
Top
Properties

  NameDescription
Public propertyContext
Gets the InitializationContext with contextual information about the created instance.
Public propertyInstance
Gets the created instance.
Top
Methods

  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(InstanceInitializationData)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Indicates whether the values of two specified InstanceInitializationData objects are equal.
Public operatorStatic memberInequality
Indicates whether the values of two specified InstanceInitializationData objects are not equal.
Top
See Also

Reference