R
Roberto Lopes
Hi!,
I have a class in which I have, lets say 8 int members;
I need to know the size of that class ( which is now 8 * 4 bytes ).
In C, we used sizeof( myClass ), but I can't find how to do it in C#.
Any idea how to do it the .Net way ? ( besides using unsafe and sizeof)
Thanks
I have a class in which I have, lets say 8 int members;
I need to know the size of that class ( which is now 8 * 4 bytes ).
In C, we used sizeof( myClass ), but I can't find how to do it in C#.
Any idea how to do it the .Net way ? ( besides using unsafe and sizeof)
Thanks