P
Peter Hartlén
Hi!
We are using C# and VS2005 with a project migrated from CF1 and VS2003. When
running if-statements with two evaluations, where the second depends on the
first evaluation, we get runtime exceptions after our migration to CF2.
if a || b
{
}
If a is true, b shoulnd't be evaluated, right?
Example:
string line;
if( line == string.Empty || line.SubString(0,1) == "[" )
(alternatively: if( (line == string.Empty) || (line.SubString(0,1) ==
"[") ) )
Using this we get runtime errors...
We are using C# and VS2005 with a project migrated from CF1 and VS2003. When
running if-statements with two evaluations, where the second depends on the
first evaluation, we get runtime exceptions after our migration to CF2.
if a || b
{
}
If a is true, b shoulnd't be evaluated, right?
Example:
string line;
if( line == string.Empty || line.SubString(0,1) == "[" )
(alternatively: if( (line == string.Empty) || (line.SubString(0,1) ==
"[") ) )
Using this we get runtime errors...