Use "nameof" instead of string

This commit is contained in:
tzachov
2016-04-18 00:04:09 +03:00
parent 6a325f8cc4
commit 5a18287009

View File

@@ -14,7 +14,7 @@ namespace Microsoft.AspNet.AngularServices {
// HTTP requests made during server-side rendering, without risking unnecessary duplicate requests.
if (string.IsNullOrEmpty(url)) {
throw new ArgumentException("Value cannot be null or empty", "url");
throw new ArgumentException("Value cannot be null or empty", nameof(url));
}
try {