Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DirContentSource.Enumerator

    Iterator over the files in the directory.

    Inheritance
    object
    DirContentSource.Enumerator
    Implements
    IEnumerator<FileInfo>
    IEnumerator
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    IEnumerator<T>
    IEnumerator
    IDisposable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.