Could not convert to C#
Hello friends,
I have a code in VB and could not change it to C#. There is a DataTable and i want to read the values of one column.
If Rows.Item(0).ToString.StartsWith(prefixText, StringComparison.OrdinalIgnoreCase) Then
retvalitems.Add(Rows.Item(0).ToString)
End If
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

yusuf57 reputationPosted Sep 4, 2009, 7:35 PM EDT
Master BillaRank #2,229 · 630 reputationPosted Sep 4, 2009, 7:42 PM EDT
Here converted code
if(Rows.Item[0].ToString().StartsWith(prefixText, StringComparison.OrdinalIgnoreCase)
{
retvalitems.Add(Rows.Item[0].ToString());
}
thank you