Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
AnswerRe: Quick Q: How big is a bool value? Pin
Guffa31-Aug-07 7:15
Guffa31-Aug-07 7:15 
GeneralRe: Quick Q: How big is a bool value? Pin
Scott Dorman31-Aug-07 8:20
professionalScott Dorman31-Aug-07 8:20 
AnswerRe: Quick Q: How big is a bool value? Pin
Guffa31-Aug-07 9:15
Guffa31-Aug-07 9:15 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 14:32
mvePIEBALDconsult31-Aug-07 14:32 
GeneralRe: Quick Q: How big is a bool value? Pin
Scott Dorman31-Aug-07 15:48
professionalScott Dorman31-Aug-07 15:48 
GeneralRe: Quick Q: How big is a bool value? Pin
Luc Pattyn31-Aug-07 16:02
sitebuilderLuc Pattyn31-Aug-07 16:02 
GeneralRe: Quick Q: How big is a bool value? Pin
Scott Dorman31-Aug-07 16:24
professionalScott Dorman31-Aug-07 16:24 
GeneralRe: Quick Q: How big is a bool value? Pin
Luc Pattyn1-Sep-07 0:55
sitebuilderLuc Pattyn1-Sep-07 0:55 
Hi Scott,

thanks for clarifying this.

On the same MSDN page it says "The common language runtime uses the Auto layout value
by default. To reduce layout-related problems associated with the Auto value, C#,
Visual Basic, and C++ compilers specify Sequential layout for value types."

So they know how to act smart, but choose not to do that by default!?

Seems to me Auto should be the default, and a warning should be given when a struct
gets P/Invoked without an explicit LayoutKind specification (so explicitly saying Auto
or Sequential or Explicit would suppress the warning).

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult1-Sep-07 5:08
mvePIEBALDconsult1-Sep-07 5:08 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 16:08
mvePIEBALDconsult31-Aug-07 16:08 
GeneralRe: Quick Q: How big is a bool value? Pin
Scott Dorman31-Aug-07 16:21
professionalScott Dorman31-Aug-07 16:21 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 16:39
mvePIEBALDconsult31-Aug-07 16:39 
JokeRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 14:40
mvePIEBALDconsult31-Aug-07 14:40 
QuestionCapturing Key Down Events in MenuStrip Pin
paas31-Aug-07 5:17
paas31-Aug-07 5:17 
QuestionRadioButton and CheckBox confusion... Pin
solutionsville31-Aug-07 4:44
solutionsville31-Aug-07 4:44 
AnswerRe: RadioButton and CheckBox confusion... Pin
PIEBALDconsult31-Aug-07 4:58
mvePIEBALDconsult31-Aug-07 4:58 
GeneralRe: RadioButton and CheckBox confusion... Pin
solutionsville31-Aug-07 5:23
solutionsville31-Aug-07 5:23 
GeneralRe: RadioButton and CheckBox confusion... Pin
PIEBALDconsult31-Aug-07 9:37
mvePIEBALDconsult31-Aug-07 9:37 
Questionconvert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 4:29
TAREQ F ABUZUHRI31-Aug-07 4:29 
AnswerRe: convert image to Byte Pin
pmarfleet31-Aug-07 4:38
pmarfleet31-Aug-07 4:38 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 4:40
TAREQ F ABUZUHRI31-Aug-07 4:40 
GeneralRe: convert image to Byte Pin
Steve Hansen31-Aug-07 4:41
Steve Hansen31-Aug-07 4:41 
GeneralRe: convert image to Byte Pin
leppie31-Aug-07 5:06
leppie31-Aug-07 5:06 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 9:49
TAREQ F ABUZUHRI31-Aug-07 9:49 
GeneralRe: convert image to Byte Pin
Mairaaj Khan1-Sep-07 1:32
professionalMairaaj Khan1-Sep-07 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.