1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System.Reflection; using System.Reflection.Emit; namespace ChocolArm64.Translation { struct ILOpCodeLoadField : IILEmit { public FieldInfo Info { get; private set; } public ILOpCodeLoadField(FieldInfo info) { Info = info; } public void Emit(ILMethodBuilder context) { context.Generator.Emit(OpCodes.Ldfld, Info); } } }