How would I shorten this If... Else... statement to check the state of a Date?
- by Ian Roke
I am a C# programmer but dabbling in VB.Net because everybody else in my team uses it. In the interests of professional development I would like to shrink the following If... Else... statement.
If cmd.Parameters("@whenUpdated").Equals(DBNull.Value) Then
item.WhenUpdated = cmd.Parameters("@whenUpdated").Value
Else
item.WhenUpdated = Nothing
End If
Cheers, Ian.