Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use single bool and bit flags for other bools. Pin
Eddy Vluggen26-Nov-11 7:53
professionalEddy Vluggen26-Nov-11 7:53 
GeneralRe: Use single bool and bit flags for other bools. Pin
harold aptroot25-Nov-11 3:45
harold aptroot25-Nov-11 3:45 
AnswerRe: Use single bool and bit flags for other bools. Pin
PIEBALDconsult24-Nov-11 3:53
mvePIEBALDconsult24-Nov-11 3:53 
GeneralRe: Use single bool and bit flags for other bools. Pin
Rob Philpott24-Nov-11 5:10
Rob Philpott24-Nov-11 5:10 
AnswerRe: Use single bool and bit flags for other bools. Pin
SilimSayo24-Nov-11 6:20
SilimSayo24-Nov-11 6:20 
AnswerRe: Use single bool and bit flags for other bools. Pin
jtstanish24-Nov-11 12:36
jtstanish24-Nov-11 12:36 
GeneralRe: Use single bool and bit flags for other bools. Pin
BillWoodruff24-Nov-11 18:44
professionalBillWoodruff24-Nov-11 18:44 
AnswerRe: Use single bool and bit flags for other bools. Pin
SledgeHammer0124-Nov-11 19:12
SledgeHammer0124-Nov-11 19:12 
Well... I'd have to say you do not provide us enough information. If your bools are related and used internally, yeah, I would group them into a [Flags] type enum. I wouldn't expose an enum from object though. That just doesn't seem like good practice to me. I would have 10 public properties that wrap a [Flags] type enum though. Thats about the same thing as packing them with the binary operators. If you are calling native C++ code, you have to use the binary operators, so there is no choice there, but I'd still have the class expose 10 public properties and wrap all that internally. If its all managed code, well... again it depends on your situation. If you have 10 bools vs. a [Flags] type enum, then the enum is going to be more efficient in transfering on the WIRE... who cares about memory usage... not important at this level. Maybe if you are working on a CE device with limited resources, it may be, but on a PC? you are wasting your time thinking about things like this.
GeneralRe: Use single bool and bit flags for other bools. Pin
PIEBALDconsult25-Nov-11 3:18
mvePIEBALDconsult25-Nov-11 3:18 
GeneralRe: Use single bool and bit flags for other bools. Pin
SledgeHammer0125-Nov-11 8:23
SledgeHammer0125-Nov-11 8:23 
GeneralRe: Use single bool and bit flags for other bools. Pin
PIEBALDconsult26-Nov-11 7:36
mvePIEBALDconsult26-Nov-11 7:36 
AnswerRe: Use single bool and bit flags for other bools. Pin
Bernhard Hiller24-Nov-11 21:48
Bernhard Hiller24-Nov-11 21:48 
GeneralRe: Use single bool and bit flags for other bools. Pin
PIEBALDconsult25-Nov-11 3:14
mvePIEBALDconsult25-Nov-11 3:14 
AnswerRe: Use single bool and bit flags for other bools. Pin
BobJanova25-Nov-11 3:58
BobJanova25-Nov-11 3:58 
GeneralRe: Use single bool and bit flags for other bools. Pin
PIEBALDconsult26-Nov-11 7:34
mvePIEBALDconsult26-Nov-11 7:34 
QuestionWindows 7 tablet PC Pin
pradeepet23-Nov-11 20:04
pradeepet23-Nov-11 20:04 
AnswerRe: Windows 7 tablet PC Pin
Richard MacCutchan24-Nov-11 5:41
mveRichard MacCutchan24-Nov-11 5:41 
AnswerRe: Windows 7 tablet PC Pin
Pete O'Hanlon24-Nov-11 5:54
mvePete O'Hanlon24-Nov-11 5:54 
Questionhow Make Md4 hash? Pin
MAHDI_GORDAN23-Nov-11 13:00
MAHDI_GORDAN23-Nov-11 13:00 
AnswerRe: how Make Md4 hash? PinPopular
Wayne Gaylard23-Nov-11 18:50
professionalWayne Gaylard23-Nov-11 18:50 
GeneralRe: how Make Md4 hash? Pin
MAHDI_GORDAN24-Nov-11 7:06
MAHDI_GORDAN24-Nov-11 7:06 
GeneralRe: how Make Md4 hash? Pin
Dave Kreskowiak24-Nov-11 9:26
mveDave Kreskowiak24-Nov-11 9:26 
GeneralRe: how Make Md4 hash? Pin
MAHDI_GORDAN24-Nov-11 23:20
MAHDI_GORDAN24-Nov-11 23:20 
GeneralRe: how Make Md4 hash? Pin
jschell25-Nov-11 8:51
jschell25-Nov-11 8:51 
QuestionHow to get the Maximum of Value of In a Rows in DataGridView Pin
nassimnastaran23-Nov-11 9:54
nassimnastaran23-Nov-11 9:54 

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.