Skip to content

Instantly share code, notes, and snippets.

@LoganBarnett
Created April 28, 2012 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoganBarnett/2519871 to your computer and use it in GitHub Desktop.
Save LoganBarnett/2519871 to your computer and use it in GitHub Desktop.
A time when the post increment operator is actually used to post increment
var colorIndex = 0;
var colorsDifferent = originalStarColors.Any(c => c != starColors[colorIndex++]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment