/Rhino.Etl.Tests/Dsl/ResultsToList.cs
http://github.com/ayende/rhino-etl · C# · 22 lines · 15 code · 2 blank · 5 comment · 0 complexity · 8acccd94cac2dd33679e589efb2abeab MD5 · raw file
- namespace Rhino.Etl.Tests.Dsl
- {
- using System.Collections.Generic;
- using Core;
- using Rhino.Etl.Core.Operations;
- public class ResultsToList : AbstractOperation
- {
- public List<Row> Results;
- /// <summary>
- /// Executes this operation
- /// </summary>
- /// <param name="rows">The rows.</param>
- /// <returns></returns>
- public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
- {
- Results = new List<Row>(rows);
- yield break;
- }
- }
- }