Example #1
0
        private IEnumerator <EventBean> ObtainEnumerator()
        {
            var selectNewEvents = GetSelectListEvents(true, true, false);

            return(selectNewEvents != null
                ? EnumerationHelper <EventBean> .CreateSingletonEnumerator(selectNewEvents[0])
                : EnumerationHelper <EventBean> .CreateEmptyEnumerator());
        }
        public IEnumerator <EventBean> ObtainEnumerator()
        {
            EventBean[] selectNewEvents = GetSelectListEvents(true, true, false);
            if (selectNewEvents != null)
            {
                return(EnumerationHelper <EventBean> .CreateSingletonEnumerator(selectNewEvents[0]));
            }

            return(EnumerationHelper <EventBean> .CreateEmptyEnumerator());
        }