Hey, I'm adding variables to some method like this:

get.Body.Variables.Add(new VariableDefinition("settingsReader", 0, get,
settingsReaderReference));
get.Body.Variables.Add(new VariableDefinition("assemblyName", 1, get,
stringReference));

but the IL code shows something like this:

class [SettingsManager]SettingsManager.SettingsReader V_0,
string V_1,

As you see, there are problem with the given names.

Also, last question: is there any differences between the last assembly and
one that uses [index] variable, like the following one:

[0] class [SettingsManager]SettingsManager.SettingsReader settingsReader,
[1] string assemblyName

Regards

-- 
Jair Cazarin Villanueva
http://jaircazarin.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to