mirror of
https://github.com/MadMin3r/UnconfuserEx
synced 2026-06-23 09:25:19 +00:00
21 lines
471 B
C#
21 lines
471 B
C#
using dnlib.DotNet.Emit;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MSILEmulator.Instructions.Load
|
|
{
|
|
internal class Ldelem
|
|
{
|
|
public static void EmulateU4(Context ctx, Instruction instr)
|
|
{
|
|
int index = (int)ctx.Stack.Pop();
|
|
var array = (uint[])ctx.Stack.Pop();
|
|
|
|
ctx.Stack.Push(unchecked((int)array[index]));
|
|
}
|
|
}
|
|
}
|