Converting VB.NET to C#.NET

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am converting a VB.NET application to C#.NET and I have ran into a
situation that I cannot so far find an answer to. Retrieving data with
an ODBCDataReader, I could issue a rdr.Read method call and then
refernce the columns with the rdr("columnname") function. Seems that
C# does not allow access to the resultset row data using the column
name. rdr.GetString(0) seems to work. Is this a limitation in C#?

.