Mega Code Archive

 
Categories / VB.Net / Data Structure
 

Create a Hashtable using a case-insensitive code provider and a case-insensitive comparer based on the Turkish culture (tr-

Imports System Imports System.Collections Imports System.Globalization Public Class SamplesHashtable    Public Shared Sub Main()       Dim myCul As New CultureInfo("tr-TR")       Dim myHT4 As New Hashtable(New CaseInsensitiveHashCodeProvider(myCul), New CaseInsensitiveComparer(myCul))       myHT4.Add("FIRST", "Hello")       myHT4.Add("SECOND", "World")       myHT4.Add("THIRD", "!")    End Sub End Class