[
https://issues.apache.org/jira/browse/LUCENENET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011160#comment-13011160
]
Digy commented on LUCENENET-378:
--------------------------------
IDisposable is added to the follwing classes (and related test cases):
Directory.cs
FileSwitchDirectory.cs
RAMDirectory.cs
FSDirectory.cs
IndexWriter.cs
IndexReader.cs
IndexSearcher.cs
CompoundFileReader.cs
Searcher.cs
JustCompileSearch.cs
MultiSearcher.cs
DIGY
> Objects with a Close method should support IDisposable
> ------------------------------------------------------
>
> Key: LUCENENET-378
> URL: https://issues.apache.org/jira/browse/LUCENENET-378
> Project: Lucene.Net
> Issue Type: Improvement
> Components: Lucene.Net Core, Lucene.Net Demo, Lucene.Net Test
> Environment: .NET
> Reporter: Kelly Elias
> Priority: Critical
> Fix For: Lucene.Net 2.9.4
>
>
> It would be very useful to have objects such as IndexSearcher and Directory
> support IDisposable. Then users can use "using" blocks to manage the lifespan
> of the objects and don't need to worry about accidentally leaving such
> objects open.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira