diff options
Diffstat (limited to 'crypto/src/asn1/BerSequence.cs')
-rw-r--r-- | crypto/src/asn1/BerSequence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/BerSequence.cs b/crypto/src/asn1/BerSequence.cs index ccff73c37..30c44b651 100644 --- a/crypto/src/asn1/BerSequence.cs +++ b/crypto/src/asn1/BerSequence.cs @@ -41,7 +41,7 @@ namespace Org.BouncyCastle.Asn1 internal override void Encode(DerOutputStream derOut) { - if (derOut is Asn1OutputStream || derOut is BerOutputStream) + if (derOut.IsBer) { derOut.WriteByte(Asn1Tags.Sequence | Asn1Tags.Constructed); derOut.WriteByte(0x80); |