Click here to Skip to main content
15,918,193 members
Home / Discussions / C#
   

C#

 
AnswerRe: Implementing an interface question Pin
leppie10-Oct-08 2:26
leppie10-Oct-08 2:26 
GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:34
Harvey Saayman10-Oct-08 2:34 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 2:41
leppie10-Oct-08 2:41 
GeneralRe: Implementing an interface question Pin
Harvey Saayman10-Oct-08 2:44
Harvey Saayman10-Oct-08 2:44 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 3:01
professionalDaveyM6910-Oct-08 3:01 
GeneralRe: Implementing an interface question Pin
leppie10-Oct-08 3:51
leppie10-Oct-08 3:51 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 4:28
professionalDaveyM6910-Oct-08 4:28 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 6:26
Guffa10-Oct-08 6:26 
DaveyM69 wrote:
Take the Size struct as an example. It's not immutable, but a struct makes perfect sense and using it within your own struct would be good too.


The Size struct is not a very good example, just because it's mutable.

If you need a type that is mutable, you should use a class, not a struct. It's so easy to accidentally change a copy of the struct instead of the struct.

As I am sure that you know, to safely change a property in a struct in an array you would have to:

NodeModuleLevelStruct temp;<br />
temp = theArray[42];<br />
temp.IsActive = true;<br />
theArray[42] = temp;


With a class, you can just do:

theArray[42].IsActive = true

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 8:05
professionalDaveyM6910-Oct-08 8:05 
GeneralRe: Implementing an interface question Pin
Guffa10-Oct-08 12:08
Guffa10-Oct-08 12:08 
GeneralRe: Implementing an interface question Pin
DaveyM6910-Oct-08 13:00
professionalDaveyM6910-Oct-08 13:00 
Questiondata formating Pin
muharrem10-Oct-08 1:40
muharrem10-Oct-08 1:40 
AnswerRe: data formating Pin
DaveyM6910-Oct-08 1:49
professionalDaveyM6910-Oct-08 1:49 
QuestionDataSource Pin
reza assar10-Oct-08 1:34
reza assar10-Oct-08 1:34 
AnswerRe: DataSource Pin
SeMartens10-Oct-08 1:44
SeMartens10-Oct-08 1:44 
AnswerRe: DataSource Pin
nelsonpaixao10-Oct-08 12:54
nelsonpaixao10-Oct-08 12:54 
Questioncreat a shortcut Pin
reza assar10-Oct-08 1:31
reza assar10-Oct-08 1:31 
AnswerRe: creat a shortcut Pin
DaveyM6910-Oct-08 1:33
professionalDaveyM6910-Oct-08 1:33 
QuestionOut of memory errors on drawing images in Pdf file Pin
Ninii10-Oct-08 1:23
Ninii10-Oct-08 1:23 
AnswerRe: Out of memory errors on drawing images in Pdf file Pin
leppie10-Oct-08 2:28
leppie10-Oct-08 2:28 
GeneralRe: Out of memory errors on drawing images in Pdf file Pin
Ninii10-Oct-08 21:48
Ninii10-Oct-08 21:48 
Questionhow to show a range of date using calender control in c# .net Pin
aurosikhadas10-Oct-08 1:01
aurosikhadas10-Oct-08 1:01 
AnswerRe: how to show a range of date using calender control in c# .net Pin
leppie10-Oct-08 2:30
leppie10-Oct-08 2:30 
QuestionInsert Images along with images name to PDF C# Pin
ramyanaidu10-Oct-08 0:43
ramyanaidu10-Oct-08 0:43 
AnswerRe: Insert Images along with images name to PDF C# Pin
leppie10-Oct-08 2:30
leppie10-Oct-08 2:30 

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.