Created
July 1, 2011 15:26
-
-
Save bwreilly/1058773 to your computer and use it in GitHub Desktop.
simple arcobjects cursor example to IEnumerable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerable Features(IFeatureCursor featureEnum) | |
{ | |
IFeature f = featureEnum.NextFeature(); | |
while (f != null) | |
{ | |
yield return f; | |
f = featureEnum.NextFeature(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment