Creates a RegionInfo using a CultureInfo.LCID : RegionInfo « I18N Internationlization « VB.Net Tutorial






Imports System
Imports System.Globalization
Public Class SamplesRegionInfo   
   Public Shared Sub Main()

      ' Creates a RegionInfo using the ISO 3166 two-letter code.
      Dim myRI1 As New RegionInfo("US")

      ' Creates a RegionInfo using a CultureInfo.LCID.
      Dim myRI2 As New RegionInfo(New CultureInfo("en-US", False).LCID)

      ' Compares the two instances.
      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
End Class








18.5.RegionInfo
18.5.1.Compare two instances of RegionInfo that were created differently.
18.5.2.Creates a RegionInfo using a CultureInfo.LCID