What's the size of this C# struct? -


Is it 12 bytes or 16 bytes when a list & lt; DataPoint & gt; ?

  Public Configuration Datapoint {DateTime Time_UTC; Float value; }  

Is there any size function in C #?

Take a look at the answer to @Hans Paceant for an interesting background on this issue, esp Regarding the boundaries of Marshal.Sizeof .


Comments