-
Notifications
You must be signed in to change notification settings - Fork 5.3k
ArgOutOfRangeException throw helpers #78222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 15 commits
661eef8
1900b3a
39e6e81
600b947
91e279e
541389f
ad4aff8
722f5b7
3c5fe6d
65d5d23
9f81c22
0709d8c
0067cbd
b760a77
6893695
b65e7d5
dd0ad2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1700,10 +1700,7 @@ public long ToFileTimeUtc() | |
| } | ||
|
|
||
| ticks -= FileTimeOffset; | ||
| if (ticks < 0) | ||
| { | ||
| throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_FileTimeInvalid); | ||
| } | ||
| ArgumentOutOfRangeException.ThrowIfNegative(ticks, null); | ||
|
||
|
|
||
| return ticks; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.