Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Primitive types or object types what to prefer Pin
Kevin McFarlane13-Jan-07 11:26
Kevin McFarlane13-Jan-07 11:26 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 3:38
professionalScott Dorman14-Jan-07 3:38 
GeneralRe: Primitive types or object types what to prefer Pin
Luc Pattyn14-Jan-07 3:55
sitebuilderLuc Pattyn14-Jan-07 3:55 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 4:15
professionalScott Dorman14-Jan-07 4:15 
GeneralRe: Primitive types or object types what to prefer Pin
ComCoderCsharp14-Jan-07 4:54
ComCoderCsharp14-Jan-07 4:54 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 5:18
professionalScott Dorman14-Jan-07 5:18 
GeneralRe: Primitive types or object types what to prefer Pin
ComCoderCsharp14-Jan-07 5:41
ComCoderCsharp14-Jan-07 5:41 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 5:47
professionalScott Dorman14-Jan-07 5:47 
No matter what, you will be allocating memory in every iteration of the loop. The only difference is that you would allocating memory to hold a ComplexNumber struct as opposed to individual native data types. Because structs are a value type, they handle memory a bit differently than classes. The biggest difference is that structs are stored on the stack and are collected shortly after that stack frame goes out of scope. The other big difference is that structs actually store their values rather than references to them.

-----------------------------
In just two days, tomorrow will be yesterday.

AnswerRe: Primitive types or object types what to prefer Pin
Luc Pattyn14-Jan-07 12:14
sitebuilderLuc Pattyn14-Jan-07 12:14 
QuestionC# or C++ and why ? Pin
Software_Specialist13-Jan-07 5:54
Software_Specialist13-Jan-07 5:54 
AnswerRe: C# or C++ and why ? Pin
Ed.Poore13-Jan-07 7:56
Ed.Poore13-Jan-07 7:56 
AnswerRe: C# or C++ and why ? Pin
Colin Angus Mackay13-Jan-07 9:20
Colin Angus Mackay13-Jan-07 9:20 
GeneralRe: C# or C++ and why ? Pin
Software_Specialist13-Jan-07 22:43
Software_Specialist13-Jan-07 22:43 
GeneralRe: C# or C++ and why ? Pin
Nadia Monalisa13-Jan-07 23:45
Nadia Monalisa13-Jan-07 23:45 
GeneralRe: C# or C++ and why ? Pin
Colin Angus Mackay14-Jan-07 3:26
Colin Angus Mackay14-Jan-07 3:26 
QuestionA user-interface question Pin
Zerox MXI13-Jan-07 1:59
Zerox MXI13-Jan-07 1:59 
AnswerRe: A user-interface question Pin
Thomas Stockwell13-Jan-07 5:23
professionalThomas Stockwell13-Jan-07 5:23 
QuestionSomething like chat Pin
CodeItWell13-Jan-07 0:21
CodeItWell13-Jan-07 0:21 
AnswerRe: Something like chat Pin
Thomas Stockwell13-Jan-07 5:24
professionalThomas Stockwell13-Jan-07 5:24 
QuestionQuestion in C# about Interfaces...... Pin
Yanshof13-Jan-07 0:16
Yanshof13-Jan-07 0:16 
AnswerRe: Question in C# about Interfaces...... Pin
Uri Lavi13-Jan-07 5:44
Uri Lavi13-Jan-07 5:44 
GeneralRe: Question in C# about Interfaces...... Pin
Yanshof13-Jan-07 5:54
Yanshof13-Jan-07 5:54 
QuestionWhy does notifyicon disappear when stop a service [modified] Pin
l.m.k12-Jan-07 23:26
l.m.k12-Jan-07 23:26 
AnswerRe: Why does notifyicon disappear when stop a service Pin
Colin Angus Mackay13-Jan-07 9:22
Colin Angus Mackay13-Jan-07 9:22 
GeneralRe: Why does notifyicon disappear when stop a service Pin
l.m.k13-Jan-07 22:12
l.m.k13-Jan-07 22:12 

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.