From 018b4c24263ec70fd200a84ae7d0106576c78606 Mon Sep 17 00:00:00 2001 From: Hisham Abdullah Bin Ateya Date: Thu, 7 May 2015 16:15:17 +0300 Subject: [PATCH] Using 'nameof' operator instead of magic strings --- src/Microsoft.AspNet.Hosting/Server/ServerLoader.cs | 2 +- .../Common/DeploymentParameters.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNet.Hosting/Server/ServerLoader.cs b/src/Microsoft.AspNet.Hosting/Server/ServerLoader.cs index 7a06dfa70f..0327ae6a31 100644 --- a/src/Microsoft.AspNet.Hosting/Server/ServerLoader.cs +++ b/src/Microsoft.AspNet.Hosting/Server/ServerLoader.cs @@ -22,7 +22,7 @@ namespace Microsoft.AspNet.Hosting.Server { if (string.IsNullOrEmpty(serverFactoryIdentifier)) { - throw new ArgumentException(string.Empty, "serverFactoryIdentifier"); + throw new ArgumentException(string.Empty, nameof(serverFactoryIdentifier)); } var nameParts = HostingUtilities.SplitTypeName(serverFactoryIdentifier); diff --git a/src/Microsoft.AspNet.Server.Testing/Common/DeploymentParameters.cs b/src/Microsoft.AspNet.Server.Testing/Common/DeploymentParameters.cs index aa1a0d87a7..86d29d9b2b 100644 --- a/src/Microsoft.AspNet.Server.Testing/Common/DeploymentParameters.cs +++ b/src/Microsoft.AspNet.Server.Testing/Common/DeploymentParameters.cs @@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Server.Testing { if (string.IsNullOrEmpty(applicationPath)) { - throw new ArgumentException("Value cannot be null.", "applicationPath"); + throw new ArgumentException("Value cannot be null.", nameof(applicationPath)); } if (!Directory.Exists(applicationPath))