diff --git a/src/Controls/src/Core/Page/Page.cs b/src/Controls/src/Core/Page/Page.cs index 219e553cb095..08ced7f4b963 100644 --- a/src/Controls/src/Core/Page/Page.cs +++ b/src/Controls/src/Core/Page/Page.cs @@ -231,7 +231,7 @@ public Task 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;