Compares the RegionInfo above with another RegionInfo created using CultureInfo : RegionInfo « Internationalization I18N « VB.Net






Compares the RegionInfo above with another RegionInfo created using CultureInfo

 
Imports System
Imports System.Globalization


Public Class SamplesRegionInfo   
   Public Shared Sub Main()
      Dim myRI1 As New RegionInfo("US")

      Dim myRI2 As New RegionInfo(New CultureInfo("en-US", False).LCID)
      If myRI1.Equals(myRI2) Then
         Console.WriteLine("The two RegionInfo instances are equal.")
      Else
         Console.WriteLine("The two RegionInfo instances are NOT equal.")
      End If 

   End Sub 'Main

End Class 

   
  








Related examples in the same category

1.Region Info Table
2.RegionInfo Class contains information about the country/region.
3.Creates a RegionInfo using the ISO 3166 two-letter code
4.Creates a RegionInfo using a CultureInfo.LCID
5.RegionInfo.CurrencyEnglishName Property gets the name of the currency used in the country/region.
6.RegionInfo.CurrencySymbol Property gets the currency symbol associated with the country/region.
7.RegionInfo.TwoLetterISORegionName Property gets the two-letter code defined in ISO 3166 for the country/region.