Validate integer value before casting it to an Enum type(dotnettipoftheday.org)

submitted by manovichmanovich(755) 4 years, 7 months ago

There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message.

add a comment |category: |Views: 17

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:

No comments so far

information Login or create an account to comment on this story