Skip to content

Period.NormalizingEqualityComparer Property

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Period.cs

NormalizingEqualityComparer()

Gets an equality comparer which compares periods by first normalizing them - so 24 hours is deemed equal to 1 day, and so on. Note that as per the Normalize method, years and months are unchanged by normalization - so 12 months does not equal 1 year.

public static IEqualityComparer<Period> NormalizingEqualityComparer { get; }

Returns

IEqualityComparer<Period>

Property Value

IEqualityComparer<Period>

An equality comparer which compares periods by first normalizing them.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue