I\'m rewriting/converting some VB-Code:
Dim dt As New System.Data.DataTable() Dim dr As System.Data.DataRow = dt.NewRow() Dim item = dr.Item(\"myItem\")
Try like this:
var item = dr["myItem"];
In C# you can access the indexer property directly. And the DataRow.Item property is defined as indexer.