Why real OBJECT compared to NULL returns TRUE?

  • Thread starter Thread starter Sly
  • Start date Start date
S

Sly

Hi!
I am facing an unbreakable wall.
I have a class 'x' with one array in it called arr;

in Equals(x arg) routine I compare the elements of the
array.
But first I check whether
if( arg.arr == null )
{
return( false ) ;
}
DEBUGGER shows 3 elements in the array - so it is not
NULL!
comparison however returns TRUE !!!!!!!

What the heck is this?
Can anyone help me on that please?

Sly
 
can you post the code that deals with arr? Or the code where you're
initializing the array.. or the part where you pass your array to the
Equals() method.

-Andre
 
Hi!

IT IS A DEBUGGER GLITCH!
I have downloaded a fix for it (after 1hour search)
Thanks for all reply's

Sly
 
Back
Top