Re: Check for null object

Tech-Archive recommends: Fix windows errors by optimizing your registry



Daniel wrote:
myClass test = new test();
test = null;


myClass test = null;

Sorry, just being pedantic.

:)

if(test == null)
{
System.Windows.Forms.MessageBox.Show("I am an idiot");

Maybe you got this right though ;)

<...>

JB
.