Skip to content

Commit

Permalink
Document DateOnly.AddDays exception (#94635)
Browse files Browse the repository at this point in the history
  • Loading branch information
ploeh authored Nov 11, 2023
1 parent 05bb403 commit 76aeefb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/System.Private.CoreLib/src/System/DateOnly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public static DateOnly FromDayNumber(int dayNumber)
/// </summary>
/// <param name="value">The number of days to add. To subtract days, specify a negative number.</param>
/// <returns>An instance whose value is the sum of the date represented by this instance and the number of days represented by value.</returns>
/// <exception cref="ArgumentOutOfRangeException">
/// Thrown if the resulting value would be greater than <see cref="MaxValue"/>.
/// </exception>
public DateOnly AddDays(int value)
{
int newDayNumber = _dayNumber + value;
Expand Down

0 comments on commit 76aeefb

Please sign in to comment.