Enum.TryParse(.NET 4.0)(www.code-in.net)

submitted by baldibaldi(508) 1 year, 11 months ago

Since .NET 4.0 the Enum class contains also a TryParse method. The method, which is supported in other basic data types already since version 2.0, allows to pass in a value which will be checked if it can be converted into the defined type. The TryParse method allows you to procude better readable and shorter code.

add a comment |category: |Views: 15

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