diff options
Diffstat (limited to 'crypto/src/asn1/Asn1UniversalType.cs')
-rw-r--r-- | crypto/src/asn1/Asn1UniversalType.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/asn1/Asn1UniversalType.cs b/crypto/src/asn1/Asn1UniversalType.cs index 81f03a540..dedc29333 100644 --- a/crypto/src/asn1/Asn1UniversalType.cs +++ b/crypto/src/asn1/Asn1UniversalType.cs @@ -40,10 +40,8 @@ namespace Org.BouncyCastle.Asn1 return CheckedCast(Asn1Object.FromByteArray(bytes)); } - internal Asn1Object GetContextInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return CheckedCast(Asn1Utilities.CheckContextTag(taggedObject).GetBaseUniversal(declaredExplicit, this)); - } + internal Asn1Object GetContextInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + CheckedCast(Asn1Utilities.CheckContextTagClass(taggedObject).GetBaseUniversal(declaredExplicit, this)); internal Asn1Tag Tag { |