sizeof() equivalent for reference types?

You need Marshal.SizeOf

Edit: This is for unsafe code, but then, so is sizeof().

Leave a Comment