You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (int current = 0; ; )
{
bool flag = current < 100; //<----- note this 'flag' variable created automatically by the decompiler
if (!flag)
{
break;
}
else
{
this.DoSomething();
current += 1;
}
}
List<int> list = new List<int>();
list.Add(1);
list.Add(2);
flag = (list == null); //<----- the same 'flag' used again, although not in scope.
if (!flag)
{
this.DoSomething();
}
The text was updated successfully, but these errors were encountered:
These flag variables are introduced by the C# compiler (in debug builds only).
The scoping should be fixed starting with build 349; but we'll still have to get rid of those variables, as they prevent the decompiler from detecting the for or foreach patterns correctly.
For instance:
The text was updated successfully, but these errors were encountered: