Skip to content

Commit

Permalink
Update Page.cs (#16086)
Browse files Browse the repository at this point in the history
Updated null check to use nameof()
  • Loading branch information
Lehonti authored Jul 12, 2023
1 parent 291a356 commit decf86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Page/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Task<bool> DisplayAlert(string title, string message, string accept, stri
#pragma warning restore CS1573 // Parameter has no matching param tag in the XML comment (but other parameters do)
{
if (string.IsNullOrEmpty(cancel))
throw new ArgumentNullException("cancel");
throw new ArgumentNullException(nameof(cancel));

var args = new AlertArguments(title, message, accept, cancel);
args.FlowDirection = flowDirection;
Expand Down

0 comments on commit decf86b

Please sign in to comment.