datatableをConfig化する (From row In dt_Config.AsEnumerable() Select Key = Trim(row.Field(Of String)(“Name”)), Value = Trim(row.Field(Of String)(“Value”)) ). _ ToDictionary(Function(x) x.Key, Function(x) x.Value) 返信
(From row In dt_Config.AsEnumerable() Where Not String.IsNullOrEmpty(row.Field(Of String)(“Name”)) AndAlso Not String.IsNullOrEmpty(row.Field(Of String)(“Value”)) Select Key = Trim(row.Field(Of String)(“Name”)), Value = Trim(row.Field(Of String)(“Value”)) ). _ ToDictionary(Function(x) x.Key, Function(x) x.Value) 返信
3件のフィードバック
リモートデスクトップへのアクセスの固定(IPアドレス)
datatableをConfig化する
(From row In dt_Config.AsEnumerable()
Select Key = Trim(row.Field(Of String)(“Name”)), Value = Trim(row.Field(Of String)(“Value”))
). _
ToDictionary(Function(x) x.Key, Function(x) x.Value)
(From row In dt_Config.AsEnumerable()
Where Not String.IsNullOrEmpty(row.Field(Of String)(“Name”)) AndAlso
Not String.IsNullOrEmpty(row.Field(Of String)(“Value”))
Select Key = Trim(row.Field(Of String)(“Name”)), Value = Trim(row.Field(Of String)(“Value”))
). _
ToDictionary(Function(x) x.Key, Function(x) x.Value)