Or seem to anyway.
=====
string abc;
if ((abc=getString ()) != "")
{
MessageBox.Show (abc);
}
private string getString()
{
return "something" ;
}
=====
I get the MessageBox displayed. If I change != to == there's no MessageBox.
What is the != comparing, and how?
=====
string abc;
if ((abc=getString ()) != "")
{
MessageBox.Show (abc);
}
private string getString()
{
return "something" ;
}
=====
I get the MessageBox displayed. If I change != to == there's no MessageBox.
What is the != comparing, and how?
Comment