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
Master BillaPosted Sep 4, 2009, 11:42 PM
Here converted code
if(Rows.Item[0].ToString().StartsWith(prefixText, StringComparison.OrdinalIgnoreCase)
{
retvalitems.Add(Rows.Item[0].ToString());
}
thank you
yusufPosted Sep 4, 2009, 11:35 PM