You mean like this:

       for (int i = 0; i < values.Length; i++)
            {

                il.Add(Instruction.Create(OpCodes.Ldloc, VariableDef));
                il.Add(Instruction.Create(OpCodes.Ldc_I4,i));
                il.Add(Instruction.Create(OpCodes.Ldc_I4, values[i]));
                il.Add((Instruction.Create(OpCodes.Stelem_I4)));

            }
? :)

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to