W
Will
what is the equivalent in C# to VB's Is Nothing? Check out
the following code snippet:
private SqlConnection objConn;
if (objConn Is Nothing) {
objConn = new SqlConnection(strConnection);
}
I'm converting my coded from vb to C# and I want to
replace objConn Is Nothing with the C# equivalent? I
trried == NULL, but C# doesn't know NULL. Thanks
the following code snippet:
private SqlConnection objConn;
if (objConn Is Nothing) {
objConn = new SqlConnection(strConnection);
}
I'm converting my coded from vb to C# and I want to
replace objConn Is Nothing with the C# equivalent? I
trried == NULL, but C# doesn't know NULL. Thanks