DataRow配列を辞書変数に変換したい

Hi @gorby

If you are using for each use an assign statement

dic_log(currentDataRow("TimeStamp").ToString) = {currentDataRow("Level").ToString, currentDataRow("Message").ToString}

Else if you want to go with linq try this


dic_log = arr_DataRow.ToDictionary(Function(row) row("TimeStamp").ToString, 
                                   Function(row) New Object() {row("Level").ToString, row("Message").ToString})


Hope this helps