Table of Contents

INotableDateAlgorithmRegistry Interface

Definition

Namespace
Bodu.Globalization.Calendar.Algorithms
Assembly
Bodu.Globalization.Calendar.dll
Package
Bodu.Globalization.Calendar 1.0.1
Source
INotableDateAlgorithmRegistry.cs

Provides lookup of custom INotableDateAlgorithm implementations by key, supplementing the engine's built-in algorithm catalogue.

public interface INotableDateAlgorithmRegistry
Extension Methods

Methods

Contains(string)

Determines whether an algorithm is registered under the supplied key.

bool Contains(string key)

Parameters

key string

The algorithm key.

Returns

bool

true if an algorithm is registered; otherwise false.

TryGet(string, out INotableDateAlgorithm?)

Attempts to retrieve the algorithm registered under the supplied key.

bool TryGet(string key, out INotableDateAlgorithm? algorithm)

Parameters

key string

The algorithm key.

algorithm INotableDateAlgorithm

When this method returns, the registered algorithm, or null when none.

Returns

bool

true if an algorithm was found; otherwise false.

Applies to

ProductVersions
.NET8, 10