Compono.CompositionConfigurationError.DuplicateCollectionSizeOverride
Compono¶
Compono.CompositionConfigurationError¶
CompositionConfigurationError.DuplicateCollectionSizeOverride Class¶
The same member-scoped .For<T>().Member(x => x.Y).WithCollectionSize(...) override was set more than once across a single Create(Action<CompositionBuilder>) callback, for the same (declaring type, member name) pair. Reuses the identical keyed-conflict detection mechanism as DuplicateRule (same key shape, same "first wins, conflict wins later" accumulation) but is never compiled into a stage-4 provider the way a member value rule is - a distinct case so the rendered message correctly names a duplicate size configuration rather than reporting it as "a member rule" (PR #19 review). See docs/adr/0020-composition-configuration-rules.md.
public sealed record CompositionConfigurationError.DuplicateCollectionSizeOverride : Compono.CompositionConfigurationError, System.IEquatable<Compono.CompositionConfigurationError.DuplicateCollectionSizeOverride>
Inheritance System.Object → CompositionConfigurationError → DuplicateCollectionSizeOverride
Implements System.IEquatable<DuplicateCollectionSizeOverride>
| Constructors | |
|---|---|
| DuplicateCollectionSizeOverride(Type, string, IReadOnlyList<ConfigurationSource>) | Creates a DuplicateCollectionSizeOverride error. |
| Properties | |
|---|---|
| DeclaringType | The member's declaring type. |
| MemberName | The member name. |
| Sources | Every call that set this override, in call order - always at least two. A genuinely immutable snapshot (Compono.ImmutableSnapshot), same guarantee as Sources. |