Skip to content

Commit b1647cc

Browse files
committed
SslClientAuthenticationOptions: Replaced SR.Format with String.Format
1 parent 9077ba0 commit b1647cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StandardSocketsHttpHandler/Net/Security/SslClientAuthenticationOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public X509RevocationMode CertificateRevocationCheckMode
3939
{
4040
if (value != X509RevocationMode.NoCheck && value != X509RevocationMode.Offline && value != X509RevocationMode.Online)
4141
{
42-
throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value));
42+
throw new ArgumentException(String.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value));
4343
}
4444

4545
_checkCertificateRevocation = value;
@@ -53,7 +53,7 @@ public EncryptionPolicy EncryptionPolicy
5353
{
5454
if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
5555
{
56-
throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
56+
throw new ArgumentException(String.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
5757
}
5858

5959
_encryptionPolicy = value;

0 commit comments

Comments
 (0)