Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you want an unsafe union, that's what StructLayout.Explicit and FieldOffset is for - a struct with all fields placed at offset 0 is exactly the same as a C union.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: