Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to installl setup.exe for every machine Pin
ASysSolvers10-Sep-07 1:47
ASysSolvers10-Sep-07 1:47 
GeneralRe: How to installl setup.exe for every machine Pin
Pete O'Hanlon10-Sep-07 1:48
mvePete O'Hanlon10-Sep-07 1:48 
Questionin-memory cache Pin
Sonia Gupta10-Sep-07 0:50
Sonia Gupta10-Sep-07 0:50 
AnswerRe: in-memory cache Pin
Pete O'Hanlon10-Sep-07 1:00
mvePete O'Hanlon10-Sep-07 1:00 
GeneralRe: in-memory cache Pin
Sonia Gupta10-Sep-07 1:13
Sonia Gupta10-Sep-07 1:13 
GeneralRe: in-memory cache Pin
Pete O'Hanlon10-Sep-07 1:20
mvePete O'Hanlon10-Sep-07 1:20 
Questionstruct question Pin
akkram10-Sep-07 0:41
akkram10-Sep-07 0:41 
AnswerRe: struct question Pin
Ed.Poore10-Sep-07 0:46
Ed.Poore10-Sep-07 0:46 
Nothing really, the most important thing with structs is they're value types, i.e. if you did the following:
aStruct firstStruct = new aStruct();
firstStruct.sId = 5;
aStruct secondStruct = firstStruct;
then secondStruct contains a copy of firstStruct not a reference to it, i.e. you can change properties on secondStruct without changing firstStruct.  If this were a class then changing secondStruct would change firstStruct as well.

To be honest I would use the second method because it is more explicit and clearer what you are trying to do, if you then decide to change the declaration of aStruct to a class rather than a struct then you don't have lots of NullReferenceExceptions popping up all over the code.



GeneralRe: struct question Pin
akkram10-Sep-07 1:07
akkram10-Sep-07 1:07 
GeneralRe: struct question Pin
Ed.Poore10-Sep-07 1:10
Ed.Poore10-Sep-07 1:10 
GeneralRe: struct question Pin
akkram10-Sep-07 1:15
akkram10-Sep-07 1:15 
GeneralRe: struct question Pin
Pete O'Hanlon10-Sep-07 1:23
mvePete O'Hanlon10-Sep-07 1:23 
GeneralRe: struct question Pin
Ed.Poore10-Sep-07 2:03
Ed.Poore10-Sep-07 2:03 
GeneralRe: struct question Pin
Pete O'Hanlon10-Sep-07 2:06
mvePete O'Hanlon10-Sep-07 2:06 
GeneralRe: struct question Pin
PIEBALDconsult10-Sep-07 4:59
mvePIEBALDconsult10-Sep-07 4:59 
GeneralRe: struct question Pin
Ed.Poore10-Sep-07 5:02
Ed.Poore10-Sep-07 5:02 
Questioninproc Pin
Sonia Gupta10-Sep-07 0:28
Sonia Gupta10-Sep-07 0:28 
AnswerRe: inproc Pin
Pete O'Hanlon10-Sep-07 0:30
mvePete O'Hanlon10-Sep-07 0:30 
GeneralRe: inproc Pin
Sonia Gupta10-Sep-07 0:42
Sonia Gupta10-Sep-07 0:42 
GeneralRe: inproc Pin
Pete O'Hanlon10-Sep-07 0:43
mvePete O'Hanlon10-Sep-07 0:43 
GeneralRe: inproc Pin
Sonia Gupta10-Sep-07 0:46
Sonia Gupta10-Sep-07 0:46 
QuestionIE-like combobox in PropertyGrid [modified] Pin
to_samGmbH10-Sep-07 0:04
to_samGmbH10-Sep-07 0:04 
AnswerRe: IE-like combobox in PropertyGrid Pin
visualhint10-Sep-07 6:24
visualhint10-Sep-07 6:24 
GeneralRe: IE-like combobox in PropertyGrid Pin
to_samGmbH10-Sep-07 21:34
to_samGmbH10-Sep-07 21:34 
GeneralRe: IE-like combobox in PropertyGrid Pin
visualhint11-Sep-07 2:02
visualhint11-Sep-07 2:02 

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.