PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.EnumeratorWrapper< T > Class Template Reference

Wraps an object which would be an acceptable enumerator in a foreach (due to .NET compile-time duck-typing) into an actual IEnumerator. More...

Inheritance diagram for PeanutButter.Utils.EnumeratorWrapper< T >:
PeanutButter.Utils.IEnumerableWrapper

Public Member Functions

 EnumeratorWrapper (object toWrap)
bool MoveNext ()
 Implements the MoveNext functionality of IEnumerable.
void Reset ()
 Implements the Reset functionality of IEnumerable.
void Dispose ()

Properties

bool IsValid [get]
 Flag: communicates if the wrapping was successful. Unsuccessful wraps will result in empty enumerations.
Current [get]

Detailed Description

Wraps an object which would be an acceptable enumerator in a foreach (due to .NET compile-time duck-typing) into an actual IEnumerator.

Property Documentation

◆ IsValid

bool PeanutButter.Utils.EnumeratorWrapper< T >.IsValid
get

Flag: communicates if the wrapping was successful. Unsuccessful wraps will result in empty enumerations.

Implements PeanutButter.Utils.IEnumerableWrapper.


The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/EnumerableWrapper.cs