Skip to content

Instantly share code, notes, and snippets.

@johnnonolan
Created February 13, 2012 15:53
Show Gist options
  • Save johnnonolan/1817808 to your computer and use it in GitHub Desktop.
Save johnnonolan/1817808 to your computer and use it in GitHub Desktop.
Iterating through a enum
foreach (var style in Enum.GetValues(typeof(TradingStyle)).Cast<TradingStyle>())
TradingStyle.constants.each do |el|
#whatevs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment