Skip to content

Period.Addition Operator

Definition

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

operator +(Period, Period)

Adds two periods together, by simply adding the values for each property.

public static Period operator +(Period left, Period right)

Parameters

Name Type Description
left Period The first period to add.
right Period The second period to add.

Returns

Period

The sum of the two periods. The units of the result will be the union of those in both periods.

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