Click here to Skip to main content
15,915,074 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can communicate with a router Pin
Anonymous23-Apr-04 17:43
Anonymous23-Apr-04 17:43 
GeneralEmbed C# controls in MFC views/dialogs Pin
rkvs20-Apr-04 7:51
rkvs20-Apr-04 7:51 
GeneralRe: Embed C# controls in MFC views/dialogs Pin
Heath Stewart20-Apr-04 8:48
protectorHeath Stewart20-Apr-04 8:48 
Generalserial communication in c# Pin
balsmn20-Apr-04 7:34
balsmn20-Apr-04 7:34 
GeneralRe: serial communication in c# Pin
Heath Stewart20-Apr-04 8:37
protectorHeath Stewart20-Apr-04 8:37 
GeneralRe: serial communication in c# Pin
Marc Clifton20-Apr-04 13:37
mvaMarc Clifton20-Apr-04 13:37 
GeneralSmall string building question Pin
Le centriste20-Apr-04 6:26
Le centriste20-Apr-04 6:26 
GeneralRe: Small string building question Pin
Jeremy Kimball20-Apr-04 6:37
Jeremy Kimball20-Apr-04 6:37 
If your code uses "your way" of doing things often, your colleague's way is better. Performing the operation the way you specified:

string x = "bob" + stringObj + "bob";


actually allocates memory for all three RHS values (iirc), not to mention the fact that string concatenation in itself is not particularly speedy or memory efficient.

However, if you only use it sparingly, or in non-critical sections, your way doesn't really have a problem either. I generally use string concatenation unless performance becomes an issue, in which case I usually switch over to a StringBuilder.



Jeremy Kimball

magnae clunes mihi placent, nec possum de hac re mentiri.
(Large buttocks are pleasing to me, nor am I able to lie concerning this matter)
GeneralRe: Small string building question Pin
Mike Dimmick20-Apr-04 6:45
Mike Dimmick20-Apr-04 6:45 
GeneralRe: Small string building question Pin
Heath Stewart20-Apr-04 8:33
protectorHeath Stewart20-Apr-04 8:33 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:33
professionalJeff Varszegi20-Apr-04 9:33 
GeneralRe: Small string building question Pin
Mike Dimmick20-Apr-04 6:42
Mike Dimmick20-Apr-04 6:42 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 6:58
professionalJeff Varszegi20-Apr-04 6:58 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 6:56
professionalJeff Varszegi20-Apr-04 6:56 
GeneralRe: Small string building question Pin
Le centriste20-Apr-04 8:30
Le centriste20-Apr-04 8:30 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:50
professionalJeff Varszegi20-Apr-04 9:50 
GeneralRe: Small string building question Pin
Heath Stewart20-Apr-04 8:36
protectorHeath Stewart20-Apr-04 8:36 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:22
professionalJeff Varszegi20-Apr-04 9:22 
GeneralRe: Small string building question Pin
Heath Stewart20-Apr-04 9:26
protectorHeath Stewart20-Apr-04 9:26 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:36
professionalJeff Varszegi20-Apr-04 9:36 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:41
professionalJeff Varszegi20-Apr-04 9:41 
GeneralRe: Small string building question Pin
Heath Stewart20-Apr-04 9:51
protectorHeath Stewart20-Apr-04 9:51 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 10:02
professionalJeff Varszegi20-Apr-04 10:02 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:48
professionalJeff Varszegi20-Apr-04 9:48 
GeneralRemoving plus on root node of a TreeView Pin
Matt Daley20-Apr-04 6:15
Matt Daley20-Apr-04 6:15 

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.