Пример #1
0
        /// <summary>
        /// Getting of Enumerator for our list but with some object type.
        /// </summary>
        /// <returns></returns>
        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            var enumerator = new Enumerator <ElementType>(this);

            return(enumerator);
        }
Пример #2
0
        /// <summary>
        /// Getting of Enumerator for our list.
        /// </summary>
        /// <returns></returns>
        public IEnumerator <ElementType> GetEnumerator()
        {
            var enumerator = new Enumerator <ElementType>(this);

            return(enumerator);
        }