Dim matchedValue As String = If(dic.ContainsKey(text), dic(text), "")
Public Shared Function 単位変換表のロード() As Dictionary(Of String, String) Return ReadDictionary("変換辞書/単位") End Function Public Shared Function ReadDictionary(sectionName As String) As Dictionary(Of String, String) Return DirectCast(System.Configuration.ConfigurationManager.GetSection(sectionName), System.Collections.Hashtable).Cast(Of System.Collections.DictionaryEntry).ToDictionary(Function(x) x.Key.ToString(), Function(x) x.Value.ToString()) End Function