On Wed, Apr 16, 2008 at 8:31 PM, Sébastien Lorion <[EMAIL PROTECTED]> wrote: > I want the managed size, so Marshal.SizeOf does not return the correct value. > > For example, sizeof(char) returns 2 and Marshal.SizeOf(typeof(char)) returns > 1.
Huh. So it does. Are there any other types for which this is true? Some quality time with a search engine suggests that there's no other way to get any kind of size at runtime. -- Curt Hagenlocher [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com