So, I'm on the verge of creating my first C # system. I am using my vb.net system to use as my link.
This is the code of my vb.net system:
Dim value As Integer = Val(dt.Rows(0).Item("TransID"))
I had to use an online converter, and here is what I got:
int value = double.Parse(dt.Rows[0].Item[TransID]);
In the "Item" section, I got curved lines - I tell you that
Error System.Data.DataRow 'does not contain a definition for' Item 'and no extension method' Item 'that takes the first argument of type' System.Data.DataRow 'can be found (do you miss the directive or assembly reference?)
What could be the problem?
source
share