コード例 #1
0
        // Dispose method

        public virtual void Dispose()
        {
            _collection = null;
            _current    = default(T);
            index       = -1;
        }
コード例 #2
0
        // Paramaterized constructor which takes the collection which this enumerator will enumerate

        public BusinessObjectEnumerator(BusinessObjectCollection <T> collection)
        {
            _collection = collection;
            index       = -1;
            _current    = default(T);
        }