Use "nameof" instead of string
This commit is contained in:
parent
6a325f8cc4
commit
5a18287009
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue