public class Test
{
int m_iInt1; // 0x0
int m_iInt2; // 0x4
}
Is this possible in C# to access a field like this:
var inst = new Test();
unsafe
{
var reference = __makeref(inst);
int int1 = *(int*)(reference + 0x0);
}
How can I accomplish this?