Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
Questionproblem with form show dialog Pin
justintimberlake3-Aug-07 2:45
justintimberlake3-Aug-07 2:45 
AnswerRe: problem with form show dialog Pin
V.3-Aug-07 2:52
professionalV.3-Aug-07 2:52 
QuestionSimple addin for Word 2003 Pin
John Reinhold3-Aug-07 2:24
John Reinhold3-Aug-07 2:24 
AnswerRe: Simple addin for Word 2003 Pin
Chintan.Desai3-Aug-07 2:42
Chintan.Desai3-Aug-07 2:42 
GeneralRe: Simple addin for Word 2003 Pin
John Reinhold3-Aug-07 2:50
John Reinhold3-Aug-07 2:50 
QuestionString Builder Pin
ramdil3-Aug-07 1:27
ramdil3-Aug-07 1:27 
AnswerRe: String Builder Pin
Malcolm Smart3-Aug-07 1:33
Malcolm Smart3-Aug-07 1:33 
AnswerRe: String Builder [modified] Pin
Luc Pattyn3-Aug-07 1:46
sitebuilderLuc Pattyn3-Aug-07 1:46 
A StringBuilder most of the time is used to improve the performance when a series
of operations needs to be performed on textual data, that would otherwise be
stored in a string (each operation would create a new string object and copy
its data). Ultimately, when the assembly of the string is done, one normally
converts the StringBuilder to a string using the ToString() method.

Since your string operation is very simple (just a concatenation) there is no
point in using StringBuilder. And as you figured, you need a string object in
order to use the nice String methods such as Split().

[Correction: if you do this several times, there may be a performance gain
in useing StringBuilder, but in the end you have to convert back to a string].

BTW: if FIELD_SEP is a constant, there is not much point in adding it permanenty;
instead, I suggest you append it to the one string you are dealing with, when
and where you need it.


Smile | :)


-- modified at 12:00 Friday 3rd August, 2007


GeneralRe: String Builder Pin
Guffa3-Aug-07 2:06
Guffa3-Aug-07 2:06 
GeneralRe: String Builder Pin
ramdil3-Aug-07 4:38
ramdil3-Aug-07 4:38 
GeneralRe: String Builder Pin
Luc Pattyn3-Aug-07 5:18
sitebuilderLuc Pattyn3-Aug-07 5:18 
AnswerRe: String Builder Pin
Manoj Kumar Rai3-Aug-07 1:50
professionalManoj Kumar Rai3-Aug-07 1:50 
AnswerRe:y making it complicated. Use stack or queue class Pin
Chintan.Desai3-Aug-07 2:45
Chintan.Desai3-Aug-07 2:45 
GeneralRe:y making it complicated. Use stack or queue class Pin
ramdil3-Aug-07 4:39
ramdil3-Aug-07 4:39 
GeneralRe:y making it complicated. Use stack or queue class Pin
Malcolm Smart3-Aug-07 4:47
Malcolm Smart3-Aug-07 4:47 
AnswerRe: String Builder Pin
V.3-Aug-07 2:48
professionalV.3-Aug-07 2:48 
AnswerRe: String Builder Pin
Guffa3-Aug-07 3:43
Guffa3-Aug-07 3:43 
GeneralRe: String Builder Pin
V.3-Aug-07 3:51
professionalV.3-Aug-07 3:51 
GeneralRe: String Builder Pin
Talal Sultan3-Aug-07 3:53
Talal Sultan3-Aug-07 3:53 
GeneralRe: String Builder Pin
ramdil3-Aug-07 4:35
ramdil3-Aug-07 4:35 
GeneralRe: String Builder Pin
V.3-Aug-07 4:39
professionalV.3-Aug-07 4:39 
GeneralRe: String Builder Pin
ramdil3-Aug-07 5:21
ramdil3-Aug-07 5:21 
GeneralRe: String Builder Pin
V.5-Aug-07 20:13
professionalV.5-Aug-07 20:13 
GeneralRe: String Builder Pin
Malcolm Smart3-Aug-07 4:46
Malcolm Smart3-Aug-07 4:46 
GeneralRe: String Builder Pin
PIEBALDconsult4-Aug-07 4:31
mvePIEBALDconsult4-Aug-07 4:31 

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.