2using System.Collections;
3using System.Collections.Generic;
26 this._stream = stream ??
throw new ArgumentNullException(nameof(stream));
35 return _stream.iterator().AsEnumerator<T>();
42 IEnumerator IEnumerable.GetEnumerator()
Wraps a Stream to produce an IEnumerable<T>.
StreamWrapper(Stream stream)
Initializes a new instance.
IEnumerator< T > GetEnumerator()
Gets an enumerator for the stream.