1
struct a { public int x; }
struct c { public byte x; }
unsafe class Program
{
static void Main(string[] args)
{
a V = new a();
V.x = 1;
c* b = (c*)(void*)&V;
for(int n = 0;n != 300;n++) b->x++;
Console.WriteLine(V.x);
Console.ReadKey(true);
}
}
45 정말 45
는 왜 예외를 throw하지 않습니다 반환?
"기본적으로 C# 코드는 선택 취소되었습니다." 나는 정말로 그것을 몰랐다. 감사합니다. – Behrooz