We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05bb403 commit 76aeefbCopy full SHA for 76aeefb
src/libraries/System.Private.CoreLib/src/System/DateOnly.cs
@@ -115,6 +115,9 @@ public static DateOnly FromDayNumber(int dayNumber)
115
/// </summary>
116
/// <param name="value">The number of days to add. To subtract days, specify a negative number.</param>
117
/// <returns>An instance whose value is the sum of the date represented by this instance and the number of days represented by value.</returns>
118
+ /// <exception cref="ArgumentOutOfRangeException">
119
+ /// Thrown if the resulting value would be greater than <see cref="MaxValue"/>.
120
+ /// </exception>
121
public DateOnly AddDays(int value)
122
{
123
int newDayNumber = _dayNumber + value;
0 commit comments