PdfTree<TKey, TValue>.Enumerator Struct
Enumerates the elements of a PdfTree<TKey, TValue>.
public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable, IEnumerator
Public Structure Enumerator
Implements IEnumerator(Of KeyValuePair(Of TKey, TValue)), IDisposable, IEnumerator
Implements
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.IDisposable
System.Collections.IEnumerator
Properties
Current
Gets the element at the current position of the enumerator.
public readonly KeyValuePair<TKey, TValue> Current { get; }
Public ReadOnly Property Current As KeyValuePair(Of TKey, TValue)
Property Value
- System.Collections.Generic.KeyValuePair<TKey, TValue>
The element in the PdfTree<TKey, TValue> at the current position of the enumerator.
Methods
Dispose()
Releases all resources used by the PdfCollection<T>.Enumerator.
MoveNext()
Advances the enumerator to the next element of the PdfTree<TKey, TValue>.
Returns
- System.Boolean
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the tree.
Exceptions
- System.InvalidOperationException
The tree was modified after the enumerator was created.
Implements
System.Collections.Generic.IEnumerator<T>
System.IDisposable
System.Collections.IEnumerator