PageRenderTime 55ms CodeModel.GetById 53ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Rhino.Etl.Tests/Joins/AddToResults.cs

http://github.com/ayende/rhino-etl
C# | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | a5ff21557c3c02f485499287cd560c6a MD5 | raw file
 1namespace Rhino.Etl.Tests.Joins
 2{
 3    using System.Collections.Generic;
 4    using Core;
 5    using Rhino.Etl.Core.Operations;
 6
 7    public class AddToResults : AbstractOperation
 8    {
 9        private readonly ICollection<Row> results;
10
11        public AddToResults(ICollection<Row> results)
12        {
13            this.results = results;
14        }
15
16        public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
17        {
18            foreach (Row row in rows)
19            {
20                results.Add(row);
21            }
22            return results;
23        }
24    }
25}