If we don't want to add IEnumerable (though it seems that IEnumerable could
be added in parallel with the existing pattern) could we add a bunch of
extension methods?
Something like the following...
{noformat}
public static class LuceneExtensions
{
public static IEnumerableTerm GetEnumerable(this
Hi,
We could add IEnumerableT to TermEnum without affecting the current
api. It would allow things like foreach(var t in reader.Terms()).
Dispose _will_ be called by a foreach statement if the IEnumeratorT
implements IDisposable (not the IEnumerableT). However, the linq
extension methods are
Hi Andy,
I have used similar extension methods for a long time. What I like
especially in extension methods is that they don't require changes in
Lucene.Net kernel and make further ports of Lucene.java independent from
.Net structures.
+1 for a Lucene.Net extensions in contrib. Even a +1 for a