Beispiel #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();
        }
 protected abstract void VisitStoreArrayElementRefInstruction(StoreArrayElementRefInstruction instruction);