Skip to content

ReflectionFallbackContext

NexusLabs.Needlr.Injection.Reflection

NexusLabs.Needlr.Injection.Reflection

ReflectionFallbackContext Class

Provides context information when a reflection-based component is used as a fallback because no source-generated component is available.

public sealed class ReflectionFallbackContext

Inheritance System.Object 🡒 ReflectionFallbackContext

Properties

ReflectionFallbackContext.ComponentName Property

Gets the name of the component that triggered the reflection fallback.

public string ComponentName { get; init; }

Property Value

System.String

ReflectionFallbackContext.GeneratedComponentType Property

Gets the type of the source-generated component that would have been used if available. May be null if the reflection package doesn't have visibility to source-gen types.

public System.Type? GeneratedComponentType { get; init; }

Property Value

System.Type

ReflectionFallbackContext.Reason Property

Gets a description of why the fallback occurred.

public string Reason { get; init; }

Property Value

System.String

ReflectionFallbackContext.ReflectionComponentType Property

Gets the type of the reflection-based component being used.

public System.Type ReflectionComponentType { get; init; }

Property Value

System.Type