Exemple #1
0
        public override IEnumerator<EventBean> GetEnumerator()
        {
            // The merge data view has multiple parent views which are AddPropertyValueView
            ArrayDeque<IEnumerable<EventBean>> iterables = new ArrayDeque<IEnumerable<EventBean>>();

            foreach (var dataView in parentViews) {
                iterables.Add(dataView);
            }

            return iterables.SelectMany(parentEnum => parentEnum).GetEnumerator();
        }