PageRenderTime 213ms CodeModel.GetById 120ms app.highlight 1ms RepoModel.GetById 90ms app.codeStats 0ms

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