NullEnumerator Class | Apache log4net™ SDK Documentation

An always empty IEnumerator.
Inheritance Hierarchy

System
Object
log4net.Util
NullEnumerator

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public sealed class NullEnumerator : IEnumerator

    Public NotInheritable Class NullEnumerator
    	Implements IEnumerator

    public ref class NullEnumerator sealed : IEnumerator

    [<SealedAttribute>]
    type NullEnumerator =
        class
            interface IEnumerator
        end

The NullEnumerator type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Current | Gets the current object from the enumerator.
| Instance | Get the singleton instance of the NullEnumerator.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MoveNext | Test if the enumerator can advance, if so advance
| Reset | Resets the enumerator back to the start.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

A singleton implementation of the IEnumerator over a collection that is empty and not modifiable.

See Also

#### Reference

log4net.Util Namespace