1
我創建了以下VB聲明:LinqPad - 鍵入缺少
Dim str1 As [String] = "indigo"
Dim str2, str3 As [String]
MessageBox.Show("str1 = '{0}'", str1)
MessageBox.Show("str2 = Upper case copy of str1 using English-United States culture.")
' str2 is an upper case copy of str1, using English-United States culture.
str2 = str1.ToUpper(New CultureInfo("en-US", False))
' str3 is an upper case copy of str1, using Turkish-Turkey culture.
MessageBox.Show("str3 = Upper case copy of str1 using Turkish-Turkey culture.")
str3 = str1.ToUpper(New CultureInfo("tr-TR", False))
新增System.Globalization.dll通過查詢其他參考但執行失敗「的CultureInfo」沒有定義類型。
我該如何解決這個問題?
斯特凡
您需要的命名空間 – SLaks