Fórmulas e Cenas

Object Reference Not Set to Instance of an Object

  Home  |   Contact  |   Syndication    |   Login
  39 Posts | 0 Stories | 6 Comments | 0 Trackbacks

News

Archives

Post Categories

Links

Wednesday, July 01, 2009 #

People keep asking how to cicle every enum term, so here is a post to explain ;)



foreach (OurEnum item in Enum.GetValues(typeof(OurEnum)))
{
      /* Code */
}
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati