INotableDateAlgorithmRegistry Interface
Definition
- Namespace
- Bodu.Globalization.Calendar.Algorithms
- Assembly
- Bodu.Globalization.Calendar.dll
- Package
- Bodu.Globalization.Calendar 1.3.0
Provides lookup of custom INotableDateAlgorithm implementations by key, supplementing the engine's built-in algorithm catalog.
public interface INotableDateAlgorithmRegistry
- Extension Methods
Remarks
AlgorithmDateStrategy consults the custom registry first and falls back to the built-in catalog, so a key registered here overrides a built-in algorithm of the same name.
Methods
Contains(string)
Determines whether an algorithm is registered under the supplied key.
bool Contains(string key)
Parameters
keystringThe algorithm key.
Returns
TryGet(string, out INotableDateAlgorithm?)
Attempts to retrieve the algorithm registered under the supplied key.
bool TryGet(string key, out INotableDateAlgorithm? algorithm)
Parameters
keystringThe algorithm key.
algorithmINotableDateAlgorithmWhen this method returns, the registered algorithm, or null when none.
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |