Esempio n. 1
0
        /// <summary>
        /// Returns an enumerator that iterate through current list.
        /// </summary>
        /// <returns>
        /// An IEnumerator object that can be used to iterate through the collection.
        /// </returns>
        public IEnumerator <long> GetEnumerator()
        {
            _iterator it = new _iterator(this);

            while (it.good())
            {
                yield return(it.current());

                it.move_next();
            }
        }
Esempio n. 2
0
        public IEnumerator <t_accessor_type> GetEnumerator()
        {
            _iterator _it = new _iterator(this);

            while (_it.good())
            {
                yield return(_it.current());

                _it.move_next();
            }
        }