|
PeanutButter
|
Wraps an object which would be an acceptable enumerable in a foreach (due to .NET compile-time duck-typing) into an actual IEnumerator. More...
Public Member Functions | |
| EnumerableWrapper (object toWrap) | |
| Construct an EnumerableWrapper around a (hopefully) enumerable object. | |
| IEnumerator | GetEnumerator () |
| EnumerableWrapper (object toWrap) | |
Protected Member Functions | |
| IEnumerator< T > | MakeEnumerator< T > () |
| Creates the enumerator. | |
Properties | |
| bool | IsValid [get] |
| Flag: communicates if the wrapping was successful. Unsuccessful wraps will result in empty enumerations. | |
Properties inherited from PeanutButter.Utils.IEnumerableWrapper | |
Wraps an object which would be an acceptable enumerable in a foreach (due to .NET compile-time duck-typing) into an actual IEnumerator.
Provides the typed EnumerableWrapper.
| T |
| PeanutButter.Utils.EnumerableWrapper< T >.EnumerableWrapper | ( | object | toWrap | ) |
Construct an EnumerableWrapper around a (hopefully) enumerable object.
| toWrap |
|
protected |
Creates the enumerator.
| T |
|
get |
Flag: communicates if the wrapping was successful. Unsuccessful wraps will result in empty enumerations.
Implements PeanutButter.Utils.IEnumerableWrapper.