我需要将此vb代码转换为c#,我的问题是我不明白vb中的项目是什么,以及它在c#中的等价物。
Dim summary As New DataTable();
Dim row As DataRow = summary.NewRow()
Dim info As Hashtable = reader.Info
For Each key As String In info.Keys
Select Case key
Case "Title"
row("Title") = info.Item(key)
Case "Author"
row("Author") = info.Item(key)
Case "Subject"
row("Subject") = info.Item(key)
End Select
Next
summary.Rows.Add(row)