Skip to content

Commit 5a18287

Browse files
committed
Use "nameof" instead of string
1 parent 6a325f8 commit 5a18287

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Microsoft.AspNet.AngularServices/PrimeCacheHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static async Task<HtmlString> PrimeCache(this IHtmlHelper html, string ur
1414
// HTTP requests made during server-side rendering, without risking unnecessary duplicate requests.
1515

1616
if (string.IsNullOrEmpty(url)) {
17-
throw new ArgumentException("Value cannot be null or empty", "url");
17+
throw new ArgumentException("Value cannot be null or empty", nameof(url));
1818
}
1919

2020
try {

0 commit comments

Comments
 (0)