07-25-2010, 04:52 PM
Code:
Public Shared Function CountryCode() As String
[b]Return RegionInfo.CurrentRegion.ThreeLetterISORegionName[/b]
End Function
here I have just put it as a function.
maybe you can find a good use for this.
As I have still seen people using 10s of line of code for something that can be done in 1 line.