This project is read-only.

Local variables names mismatch in ILMutator sample

Topics: Metadata Model, PDB Reader, PE reader, Source Model
Jun 24, 2012 at 6:02 PM


I run the ILMutator sample on very simple class library, which contains following method:

public int Boo(int parameter)
    int i = 0;
    int j = 1;
    return ((parameter + i) + j);

the result after disassembling was following: 

public int Boo(int parameter)
    int num = 0;
    int num2 = 1;
    return ((parameter + num) + num2);

Why the names of the local variables are not kept? e.g. instead of i we get "num":/

If the local variables' names are incorrect will I be able to see their values during debugging?

Thanks for help.