diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:07:20 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:07:20 +0700 |
commit | fe7d3e0009ae2ba833be66729221f42ac3aa0464 (patch) | |
tree | 7008925a5fb5a59a32fcd40ab0638a8e6888de08 /crypto/src/tls/ProtocolVersion.cs | |
parent | Refactor Asn1Dump (diff) | |
download | BouncyCastle.NET-ed25519-fe7d3e0009ae2ba833be66729221f42ac3aa0464.tar.xz |
Refactoring around Platform
Diffstat (limited to 'crypto/src/tls/ProtocolVersion.cs')
-rw-r--r-- | crypto/src/tls/ProtocolVersion.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tls/ProtocolVersion.cs b/crypto/src/tls/ProtocolVersion.cs index e9c08e8cd..fd32848b0 100644 --- a/crypto/src/tls/ProtocolVersion.cs +++ b/crypto/src/tls/ProtocolVersion.cs @@ -412,7 +412,7 @@ namespace Org.BouncyCastle.Tls CheckUint8(minor); int v = (major << 8) | minor; - string hex = Platform.ToUpperInvariant(Convert.ToString(0x10000 | v, 16).Substring(1)); + string hex = Convert.ToString(0x10000 | v, 16).Substring(1).ToUpperInvariant(); return new ProtocolVersion(v, prefix + " 0x" + hex); } } |