Archived

This topic is now archived and is closed to further replies.

PuterPaul

Safe C# equivalent of sizeof

Recommended Posts

Guest Anonymous Poster
There is a method called SizeOf in System.Runtime.InteropServices.Marshal.

E.g. Marshal.SizeOf(Type.GetType("System.Double")
returns 8 on my machine.

Share this post


Link to post
Share on other sites