>Hi,
>Thank you for reply.
>
>Actually I am not using string. I just use it as example. Below is my sample code":
>
>
>
>public class MyClass
>{
> public bool MyMethodA()
> {
> bool retVal = false;
> //Do Soemthing
>
> retVal = retVal && this.MethodB();
> return retVal;
> }
>
> public bool MyMethodB()
> {
> bool retVal = false;
> //Do Something
> retVal = 1 + 1 > 0; //Example
>
> if (retVal) // Weird
> {
> retVal = 2 + 2 > 0; // Example
> }
>
> return retVal;
> }
>}
>
>
>when I debug, the retVal at //Weird will compare wrongly. If I change retVal at MethodA to other name, then the problem will be gone. At idea?
I don't see anything weird in this code (but I corrected the MethodB as MyMethodB thinking it was a typo).
Cetin