Skip to content

Instantly share code, notes, and snippets.

@bwreilly
Created July 1, 2011 15:26
Show Gist options
  • Save bwreilly/1058773 to your computer and use it in GitHub Desktop.
Save bwreilly/1058773 to your computer and use it in GitHub Desktop.
simple arcobjects cursor example to IEnumerable
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