/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

  1. namespace Rhino.Etl.Tests.Dsl
  2. {
  3. using System.Collections.Generic;
  4. using Core;
  5. using Rhino.Etl.Core.Operations;
  6. public class ResultsToList : AbstractOperation
  7. {
  8. public List<Row> Results;
  9. /// <summary>
  10. /// Executes this operation
  11. /// </summary>
  12. /// <param name="rows">The rows.</param>
  13. /// <returns></returns>
  14. public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
  15. {
  16. Results = new List<Row>(rows);
  17. yield break;
  18. }
  19. }
  20. }