summary refs log tree commit diff
path: root/crypto/src/asn1/DERSetParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DERSetParser.cs')
-rw-r--r--crypto/src/asn1/DERSetParser.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crypto/src/asn1/DERSetParser.cs b/crypto/src/asn1/DERSetParser.cs
index d67f135be..344de3bc1 100644
--- a/crypto/src/asn1/DERSetParser.cs
+++ b/crypto/src/asn1/DERSetParser.cs
@@ -1,24 +1,26 @@
+using System;
+
 namespace Org.BouncyCastle.Asn1
 {
+    // TODO[asn1] Should be renamed/replaced with DLSetParser
 	public class DerSetParser
 		: Asn1SetParser
 	{
-		private readonly Asn1StreamParser _parser;
+		private readonly Asn1StreamParser m_parser;
 
-		internal DerSetParser(
-			Asn1StreamParser parser)
+		internal DerSetParser(Asn1StreamParser parser)
 		{
-			this._parser = parser;
+			this.m_parser = parser;
 		}
 
 		public IAsn1Convertible ReadObject()
 		{
-			return _parser.ReadObject();
+			return m_parser.ReadObject();
 		}
 
 		public Asn1Object ToAsn1Object()
 		{
-			return new DerSet(_parser.ReadVector(), false);
+			return DLSet.FromVector(m_parser.ReadVector());
 		}
 	}
 }