Class DirContentSource.Enumerator
Iterator over the files in the directory.
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class DirContentSource.Enumerator : IEnumerator<FileInfo>, IEnumerator, IDisposable
Constructors
Enumerator(DirectoryInfo)
Iterator over the files in the directory.
Declaration
public Enumerator(DirectoryInfo f)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | f |
Properties
Count
Iterator over the files in the directory.
Declaration
public virtual int Count { get; }
Property Value
Type | Description |
---|---|
int |
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public virtual FileInfo Current { get; }
Property Value
Type | Description |
---|---|
FileInfo | The element in the collection at the current position of the enumerator. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Iterator over the files in the directory.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public virtual bool MoveNext()
Returns
Type | Description |
---|---|
bool | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The collection was modified after the enumerator was created. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public virtual void Reset()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The collection was modified after the enumerator was created. |
NotSupportedException | The enumerator does not support being reset. |