comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:1aca3d413885
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using ESRI.ArcGIS.Geodatabase;
6
7 namespace Postarc.Geodatabase
8 {
9 class SelectionSetEnumerator : IEnumIDs
10 {
11 protected SelectionSet set;
12 protected int next = 0;
13
14 public SelectionSetEnumerator(SelectionSet set)
15 {
16 this.set = set;
17 }
18
19 public int Next()
20 {
21 if (set.Count < next)
22 {
23 return set.List[next++];
24 }
25 return -1;
26 }
27
28 public void Reset()
29 {
30 this.next = 0;
31 }
32 }
33 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)