diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-25 16:43:34 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-25 16:43:34 +0700 |
commit | 48e949f985e42e5b841e05e9b84a969d63520c1e (patch) | |
tree | 9e2ecbdccc34924c18c3f00a6fc2f57d3a3bf852 /crypto/src/asn1/BERSetParser.cs | |
parent | Warnings cleanup (diff) | |
download | BouncyCastle.NET-ed25519-48e949f985e42e5b841e05e9b84a969d63520c1e.tar.xz |
Mark BER parser classes Obsolete (for removal from public API)
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/BERSetParser.cs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/crypto/src/asn1/BERSetParser.cs b/crypto/src/asn1/BERSetParser.cs index 292ae60b1..63be54524 100644 --- a/crypto/src/asn1/BERSetParser.cs +++ b/crypto/src/asn1/BERSetParser.cs @@ -2,29 +2,21 @@ using System; namespace Org.BouncyCastle.Asn1 { + [Obsolete("Check for 'Asn1SetParser' instead")] public class BerSetParser : Asn1SetParser { - private readonly Asn1StreamParser _parser; + private readonly Asn1StreamParser m_parser; internal BerSetParser(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 BerSet Parse(Asn1StreamParser sp) - { - return BerSet.FromVector(sp.ReadVector()); - } + internal static BerSet Parse(Asn1StreamParser sp) => BerSet.FromVector(sp.ReadVector()); } } |