Period.FromYears Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Period.cs
FromYears(int)
Creates a period representing the specified number of years.
public static Period FromYears(int years)
Parameters
| Name | Type | Description |
|---|---|---|
years |
int |
The number of years in the new period. |
Returns
A period consisting of the given number of years.
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