diff options
Diffstat (limited to 'crypto/src/asn1/BERSequenceParser.cs')
-rw-r--r-- | crypto/src/asn1/BERSequenceParser.cs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/crypto/src/asn1/BERSequenceParser.cs b/crypto/src/asn1/BERSequenceParser.cs index 5fa1de8a6..0b4c78eb3 100644 --- a/crypto/src/asn1/BERSequenceParser.cs +++ b/crypto/src/asn1/BERSequenceParser.cs @@ -2,29 +2,21 @@ using System; namespace Org.BouncyCastle.Asn1 { + [Obsolete("Check for 'Asn1SequenceParser' instead")] public class BerSequenceParser : Asn1SequenceParser { - private readonly Asn1StreamParser _parser; + private readonly Asn1StreamParser m_parser; internal BerSequenceParser(Asn1StreamParser parser) { - this._parser = parser; + m_parser = parser; } - public IAsn1Convertible ReadObject() - { - return _parser.ReadObject(); - } + public IAsn1Convertible ReadObject() => m_parser.ReadObject(); - public Asn1Object ToAsn1Object() - { - return Parse(_parser); - } + public Asn1Object ToAsn1Object() => Parse(m_parser); - internal static BerSequence Parse(Asn1StreamParser sp) - { - return new BerSequence(sp.ReadVector()); - } + internal static BerSequence Parse(Asn1StreamParser sp) => BerSequence.FromVector(sp.ReadVector()); } } |