Table of Contents

CollisionPolicy Enum

Definition

Namespace
Bodu.Globalization.Calendar.RangeResolution
Assembly
Bodu.Globalization.Calendar.dll
Package
Bodu.Globalization.Calendar 1.0.1
Source
CollisionPolicy.cs

Determines how the resolver treats multiple distinct notable dates that resolve to the same day or overlapping span.

public enum CollisionPolicy
Extension Methods

Fields

KeepAll = 0

Keep every colliding occurrence.

HighestPriorityOnly = 1

Keep only the occurrence with the highest priority.

CategoryPriority = 2

Resolve collisions using category precedence.

Custom = 3

Resolve collisions using a custom strategy.

Remarks

The recommended default is KeepAll, because multiple notable dates can legitimately occur on the same day. The other policies thin a same-day group by priority or category, or defer to an INotableDateCollisionResolver when set to Custom.

// Two concepts landing on the same day: HighestPriorityOnly keeps the winner,
// KeepAll surfaces both. Set via the resolution policy:
NotableDateDocumentBuilder.Create("demo")
    .WithResolutionPolicy(p => p.WithSameDayCollisionPolicy(CollisionPolicy.HighestPriorityOnly));

Applies to

ProductVersions
.NET8, 10

See Also