This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit e1a930ac7453b1a0f07e89bd226bd44056bd19ba
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Aug 29 16:02:47 2020 +0700

    Lucene.Net.Index.TermsEnum: Changed to use TermsEnum object itself from 
Current property to expose its interface during a foreach loop (see #279, #212)
---
 src/Lucene.Net/Index/TermsEnum.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net/Index/TermsEnum.cs 
b/src/Lucene.Net/Index/TermsEnum.cs
index 8f28335..f0b6de4 100644
--- a/src/Lucene.Net/Index/TermsEnum.cs
+++ b/src/Lucene.Net/Index/TermsEnum.cs
@@ -58,7 +58,9 @@ namespace Lucene.Net.Index
 
         /// <inheritdoc/>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public BytesRef Current => Term; // LUCENENET specific - made into 
enumerator for foreach
+        public TermsEnum Current => this; // LUCENENET specific - made into 
enumerator for foreach
+
+        BytesRef IBytesRefEnumerator.Current => Term;
 
         /// <summary>
         /// Moves to the next item in the <see cref="TermsEnum"/>.

Reply via email to