summary refs log tree commit diff
path: root/crypto/src/asn1/LazyDLEnumerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/LazyDLEnumerator.cs')
-rw-r--r--crypto/src/asn1/LazyDLEnumerator.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/crypto/src/asn1/LazyDLEnumerator.cs b/crypto/src/asn1/LazyDLEnumerator.cs
index efe383e3d..5e1be8228 100644
--- a/crypto/src/asn1/LazyDLEnumerator.cs
+++ b/crypto/src/asn1/LazyDLEnumerator.cs
@@ -1,11 +1,12 @@
 using System;
 using System.Collections;
+using System.Collections.Generic;
 using System.IO;
 
 namespace Org.BouncyCastle.Asn1
 {
     internal class LazyDLEnumerator
-        : IEnumerator
+        : IEnumerator<Asn1Encodable>
     {
         private readonly byte[] m_contents;
 
@@ -19,7 +20,12 @@ namespace Org.BouncyCastle.Asn1
             Reset();
         }
 
-        public object Current
+        object IEnumerator.Current
+        {
+            get { return Current; }
+        }
+
+        public Asn1Encodable Current
         {
             get
             {
@@ -30,6 +36,10 @@ namespace Org.BouncyCastle.Asn1
             }
         }
 
+        public virtual void Dispose()
+        {
+        }
+
         public bool MoveNext()
         {
             return null != (this.m_current = ReadObject());