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 ???