Comparing of various nullable values in C# : How to translate these lines of VB.NET code into C#?
this is a fragment of code which I don't understand
...
  

           cmd.Parameters.AddWithValue("@ID", res_ID)
           Dim m1 As Object = cmd.ExecuteScalar()
             If m1 Is DBNull.Value Or Nothing Then
                m1 = 0
             Else
                m1= 1
             End If

