summary refs log tree commit diff
path: root/crypto/src/asn1/BERSetParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BERSetParser.cs')
-rw-r--r--crypto/src/asn1/BERSetParser.cs20
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());
     }
 }