Here's a snippet from my code:[VB.NET]
' Grab the identity column value if found If Not IsDBNull(cmd.Parameters("@CaseID").Value) Then caseID = CInt(cmd.Parameters("@CaseID").Value) End If
The problem I'm seeing when stepping through the code is that the Debug Visualizer shows an error when attempting to evaluate the If and following line of code. I have attached a screenshot. It incorrectly states "Class 'SqlCommand' cannot be indexed because it has no default property", but as you can see, I am NOT indexing SqlCommand - I'm directly referencing its Parameters property.