Summer.Batch.Infrastructure.Item.Support.ListItemReader< T > Class Template Reference

Simple item reader that pulls its data from a supplied list. More...

Inheritance diagram for Summer.Batch.Infrastructure.Item.Support.ListItemReader< T >:
Summer.Batch.Infrastructure.Item.IItemReader< T >

Public Member Functions

 ListItemReader (IEnumerable< T > list)
 Constructor with the list supplying the read elements. More...
 
Read ()
 Reads at each call the next item in the list. More...
 
- Public Member Functions inherited from Summer.Batch.Infrastructure.Item.IItemReader< T >
Read ()
 Reads a piece of input data and advance to the next one. Implementations must return null at the end of the input data set. In a transactional setting, caller might get the same item twice from successive calls (or otherwise), if the first call was in a transaction that rolled back. More...
 

Detailed Description

Simple item reader that pulls its data from a supplied list.

Template Parameters
T 
Type Constraints
T :class 

Constructor & Destructor Documentation

Constructor with the list supplying the read elements.

Parameters
list

Member Function Documentation

Reads at each call the next item in the list.

Returns
the next item in the list

The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Item/Support/ListItemReader.cs