diff options
Diffstat (limited to 'crypto/src/asn1/x500/style/IetfUtilities.cs')
-rw-r--r-- | crypto/src/asn1/x500/style/IetfUtilities.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/x500/style/IetfUtilities.cs b/crypto/src/asn1/x500/style/IetfUtilities.cs index e269f418d..72ed08dd3 100644 --- a/crypto/src/asn1/x500/style/IetfUtilities.cs +++ b/crypto/src/asn1/x500/style/IetfUtilities.cs @@ -93,15 +93,15 @@ namespace Org.BouncyCastle.Asn1.X500.Style public static string Canonicalize(string s) { - string value = Platform.ToLowerInvariant(s); + string value = s.ToLowerInvariant(); if (value.Length > 0 && value[0] == '#') { Asn1Object obj = DecodeObject(value); - if (obj is IAsn1String) + if (obj is IAsn1String str) { - value = Platform.ToLowerInvariant(((IAsn1String)obj).GetString()); + value = str.GetString().ToLowerInvariant(); } } |