I just found an easy way to convert an enum value to its corresponding string value. Say you have the following enum.enum Numbers { zero, one, two, three, four }If you do Numbers.one you of course get the number 1. But let's say you have the enum value and you want to print it out. It's easy to get the string value by using an array indexer on the enum type.var myNumber = Numbers.two;var twoAsString = Numbers[myNumber]; // twoAsString == "two"It seems a little strange but it works. If you look at ......
This is your last week to sign up for my contest to win a copy of my book, HTML5 Web Application Development by Example. See my previous blog for instructions.
http://wblo.gs/eE5
We are pleased to announce that we are organizing a giveaway especially for you. All you need to do is just comment below the post and win a free copy of HTML5 Web Application Development By Example. Two lucky winners stand a chance to win a copy of the book. Keep reading to find out how you can be one of the Lucky Ones. Overview of HTML5 Web Application Development By Example Packed with example applications that show you how to create rich, interactive applications and games. Shows you how to use ......