size of structure

Jedhi

Well-known member
Joined
Oct 2, 2003
Messages
127
C#:
class FindOutStructSize
{
   byte[] buffer = new byte [5];   }

// instead of 5 I would like to use the size of the struct. This force me to use unsafe code. Are there any alternative, and if not what do I really risk putting the entire class as unsafe ???
 
Back
Top