Cascade
Loading...
Searching...
No Matches
Buzzware.Cascade.EnumerableAdapter< T > Class Template Reference

This class implements IEnumerable<T> to adapt a non-generic IEnumerable to work with a specified type T by casting the elements of the source enumeration to type T. More...

Inheritance diagram for Buzzware.Cascade.EnumerableAdapter< T >:

Public Member Functions

 EnumerableAdapter (IEnumerable source)
 EnumerableAdapter Constructor. Initializes a new EnumerableAdapter with a specified non-generic source enumeration.
IEnumerator< T > GetEnumerator ()
 Returns an enumerator that iterates through the collection, converting each element to the target generic type T.

Properties

IEnumerable Source [get]
 The non-generic source enumeration that will be adapted to IEnumerable<T>.

Detailed Description

This class implements IEnumerable<T> to adapt a non-generic IEnumerable to work with a specified type T by casting the elements of the source enumeration to type T.

Member Function Documentation

◆ EnumerableAdapter()

Buzzware.Cascade.EnumerableAdapter< T >.EnumerableAdapter ( IEnumerable source)
inline

EnumerableAdapter Constructor. Initializes a new EnumerableAdapter with a specified non-generic source enumeration.

Parameters
sourceThe non-generic IEnumerable source to be adapted.

◆ GetEnumerator()

IEnumerator< T > Buzzware.Cascade.EnumerableAdapter< T >.GetEnumerator ( )
inline

Returns an enumerator that iterates through the collection, converting each element to the target generic type T.

Returns
An IEnumerator of type T to iterate through the collection.

The documentation for this class was generated from the following file:
  • Buzzware.Cascade/utilities/EnumerableAdapter.cs