Compono.Nullability
Compono¶
Compono¶
Nullability Enum¶
Whether a value requested from Resolve<TValue>(CompositionRequestDescriptor) came from a nullable-annotated parameter or required member (a string?, not a string).
Fields¶
NotNullable 0
The requested parameter or member is not nullable-annotated.
Nullable 1
The requested parameter or member is nullable-annotated.
Remarks¶
Reference-type nullable annotations are erased from the runtime generic type argument - Resolve<string>() and a hypothetical Resolve<string?>() are the same closed generic method at runtime - so a generated ICompositionPlan<T> passes this explicitly rather than relying on the requested type argument to carry it. See docs/adr/0006-required-members-and-nullability-metadata.md.