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)
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
{
// 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:
{
// 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