Home > Archive > microsoft.public.cert.exam.mcsd > May 2003 > Booleans





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Booleans
maria

2003-05-26, 11:23 am

The .NET boolean is 2 bytes, but the (unmanaged) Win32
BOOL type is 4 bytes.

Msdn:

UnmanagedType Enumeration
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/ frlrfsystemruntimeinteropservi
cesunmanagedtyp
eclasstopic.asp

Data Type Summary
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vblr7/html/vagrpdatatype.asp

>-----Original Message-----
>Correct me if I am wrong here, but I read that Booleans
>in .NET are 4 bytes now. Could there be a reason for it???
>A bit is sufficient to store 0 or 1...Must have something
>to do with System.Boolean inherting from
>System.ValueType... don't know...
>.
>

Kline Sphere

2003-05-26, 11:23 am

>The .NET boolean is 2 bytes, but the (unmanaged) Win32
>BOOL type is 4 bytes.


Correct. However: -

bool, boolean & BOOLEAN = 1 byte.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net