2
Shouts

Hidden Gems inside .Net Classes

published 289 days, 9 hours, 40 minutes ago posted by deanomachinodeanomachino 298 days, 22 hours ago
Friday, August 10, 2012 9:42:51 AM GMT Tuesday, July 31, 2012 9:23:25 PM GMT

Surprisingly, there are loads of great data snippets hidden inside .Net classes. If you've ever found yourself adding localization to your website, you may have come across the CultureInfo Class in .Net. I know that sometimes I have needed to get a list of country ISO codes and have struggled to get a comprehensive list, or I have needed to retrieve the list from a Database containing the names. This can add an extra Database call and could result in extra code maintenance, and possibly a performance hit.

Well, this is where CultureInfo comes to the rescue. Using this Class, you will be able to easily retrieve a list of country names and their ISO codes using built-in .Net code.

category: Web Dev | clicked: 28 | | source: deanhume.com | show counter code
tags:

No comments yet, be the first one to post comment.

To post your comment please login or signup