Mercurial > postarc > postarc
view Postarc/Postarc/Geodatabase/SelectionSetEnumerator.cs @ 0:1aca3d413885 tip
Initial import of Postarc
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 05 Oct 2012 23:55:06 +0200 |
parents | |
children |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ESRI.ArcGIS.Geodatabase; namespace Postarc.Geodatabase { class SelectionSetEnumerator : IEnumIDs { protected SelectionSet set; protected int next = 0; public SelectionSetEnumerator(SelectionSet set) { this.set = set; } public int Next() { if (set.Count < next) { return set.List[next++]; } return -1; } public void Reset() { this.next = 0; } } }