SizeOf Structs
Hi,
Somebody please help me to understand something
i have this struct for example :
struct Test
{
public long l1;
public char c2;
}
class Program
{
static unsafe void Main(string[] args)
{
Console.WriteLine(sizeof(Test));
Console.ReadKey();
}
}
long (8) + char(2)(that will overhead more 2) = 12 bytes
why sizeof(Test) gives 16 ?
thanks !
|