Fix build break
authorJan Kotas <jkotas@microsoft.com>
Wed, 2 Nov 2016 14:35:30 +0000 (07:35 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 2 Nov 2016 14:35:30 +0000 (07:35 -0700)
[tfs-changeset: 1636334]

src/mscorlib/src/System/Security/SecurityManager.cs
src/mscorlib/src/System/Text/BaseCodePageEncoding.cs
src/mscorlib/src/System/Text/DBCSCodePageEncoding.cs
src/mscorlib/src/System/Text/SBCSCodePageEncoding.cs

index 235d510..80145ef 100644 (file)
@@ -205,19 +205,19 @@ namespace System.Security {
             Parser parser = new Parser( str );
             SecurityElement elRoot = parser.GetTopElement();
             if (elRoot == null)
-                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), nameof(configuration) ) );
+                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "configuration" ) );
 
             SecurityElement elMscorlib = elRoot.SearchForChildByTag( "mscorlib" );
             if (elMscorlib == null)
-                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), nameof(mscorlib) ) );
+                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "mscorlib" ) );
 
             SecurityElement elSecurity = elMscorlib.SearchForChildByTag( "security" );
             if (elSecurity == null)
-                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), nameof(security) ) );
+                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "security" ) );
 
             SecurityElement elPolicy = elSecurity.SearchForChildByTag( "policy" );
             if (elPolicy == null)
-                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), nameof(policy) ) );
+                throw new ArgumentException( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "Policy_BadXml" ), "policy" ) );
 
             SecurityElement elPolicyLevel = elPolicy.SearchForChildByTag( "PolicyLevel" );
             if (elPolicyLevel != null)
index 8d22b8b..4c9ca6e 100644 (file)
@@ -175,7 +175,7 @@ namespace System.Text
         internal BaseCodePageEncoding(SerializationInfo info, StreamingContext context) : base(0)
         {
             // We cannot ever call this, we've proxied ourselved to CodePageEncoding
-            throw new ArgumentNullException(nameof(this));
+            throw new ArgumentNullException("this");
         }
 
         // ISerializable implementation
index 57468db..1503ef7 100644 (file)
@@ -62,7 +62,7 @@ namespace System.Text
         {
             // Actually this can't ever get called, CodePageEncoding is our proxy
             Contract.Assert(false, "Didn't expect to make it to DBCSCodePageEncoding serialization constructor");
-            throw new ArgumentNullException(nameof(this));
+            throw new ArgumentNullException("this");
         }
 
         // MBCS data section:
index dba223e..b21ba78 100644 (file)
@@ -54,7 +54,7 @@ namespace System.Text
         {
             // Actually this can't ever get called, CodePageEncoding is our proxy
             Contract.Assert(false, "Didn't expect to make it to SBCSCodePageEncoding serialization constructor");
-            throw new ArgumentNullException(nameof(this));
+            throw new ArgumentNullException("this");
         }
 
         // We have a managed code page entry, so load our tables