Loop through Enumerations in C#(www.teebot.be)

submitted by teebotteebot(65) 1 year, 8 months ago

I recently found out it's pretty easy to iterate through enums by first getting the names of the enums and then parsing those back as enum.

1 comment |category: |Views: 3

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by Tr3vTr3v(376) 1 year, 8 months ago 0

I've posted an example on your blog, you would be better off using Enum.GetValues(typeof(ImageSide)))

Reply

information Login or create an account to comment on this story