Method DumpIterator
DumpIterator(String, System.Collections.IEnumerator, TextWriter)
Convenience method for logging an iterator.
Declaration
public static void DumpIterator(string label, System.Collections.IEnumerator iter, TextWriter stream)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | String logged before/after the items in the iterator |
System.Collections.IEnumerator | iter | Each next() is toString()ed and logged on it's own line. If iter is null this is logged differnetly then an empty iterator. |
TextWriter | stream | Stream to log messages to. |