M
moondaddy
Need help converting vb.net 1.1 code snippet to c# 2.0.
The code below tests to see if field in a strongly typed data row is null.
This works in vb.net 1.1, but I'm having trouble converting it to c# 2.0
partly because I'm new to c# and also because I'm new to 2.0.
Thanks.
If dr.IsEq_NotesNull Then
cmd.Parameters("@Eq_Notes").Value = dr.IsNull("Eq_Notes")
Else
cmd.Parameters("@Eq_Notes").Value = dr.Eq_Notes
End If
The code below tests to see if field in a strongly typed data row is null.
This works in vb.net 1.1, but I'm having trouble converting it to c# 2.0
partly because I'm new to c# and also because I'm new to 2.0.
Thanks.
If dr.IsEq_NotesNull Then
cmd.Parameters("@Eq_Notes").Value = dr.IsNull("Eq_Notes")
Else
cmd.Parameters("@Eq_Notes").Value = dr.Eq_Notes
End If