Esempio n. 1
0
        protected override void VisitStoreArrayElementRefInstruction(StoreArrayElementRefInstruction instruction)
        {
            ControlState.EvaluationStack.PopValue(out CilValueReference arrayRef, out CilValueInt32 indexVal, out CilValueReference valueVal);

            var array = ManagedMemory.Load(arrayRef) as CilArray;

            array.SetValue(valueVal, indexVal, ManagedMemory);

            ControlState.MoveToNextInstruction();
        }
Esempio n. 2
0
 protected abstract void VisitStoreArrayElementRefInstruction(StoreArrayElementRefInstruction instruction);