using Mono.Cecil.Rocks;
body.SimplifyMacros( );
body.OptimizeMacros( );
////////////////////////////////////////
if (sVar == true)
path = "ccc";
else
path = "bbb";
make wrong offsets.
////////////////////////////////////////
////////////////////////////////////////
if (sVar == true)
{
path = "ccc";
}
else
{
path = "bbb";
}
works
////////////////////////////////////////
switch (sVar)
{
case 1:
path = "aaa";
break;
case 2:
path = "aaa";
break;
case 4:
path = "aaa";
break;
default:
throw new NotSupportedException("Version not supported:
" + version);
break;
}
with default statement wrong offsets (use {, })
////////////////////////////////////////
true ? GetSimpleString ("_CorDllMain")
: GetSimpleString ("_CorExeMain");
wrong offsets
//////////////////////////////////////
--
View this message in context:
http://mono.1490590.n4.nabble.com/Bug-SimplifyMacros-OptimizeMacros-tp3050250p3050250.html
Sent from the Mono - Cecil mailing list archive at Nabble.com.
--
--
mono-cecil