TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

Re: convert generic string list to one string

C#(C Sharp)


Reply
 
Thread Tools Display Modes
Old 15-12-2007, 02:28 AM   #1
GS
Guest
 
Posts: n/a
Re: convert generic string list to one string

thank you for the concern. That has been take care of. I am using
stringboard and its append method.

"Marc Gravell" <> wrote in message
news:...
> > starting with empty string

>
> If you do really mean "string" here, then note that this may be more
> than a little inefficient, due to the immutability of strings (so your
> loop would create *lots* of GEN0 objects, and consume telescoping
> memory (i.e. n1 + [n1+n2] + [n1+n2+n3] + [n1+n2+n3+n4] + ... if you
> see what I mean [give-or-take the separators]).
> String concatenation inside a loop is an ideal candidate for
> StringBuilder (which is supported under CF).
>
> Explanation:
>
> Of course, if you aren't actually using "string" concatenation then it
> isn't an issue.
>
> Marc
>



  Reply With Quote
Old 15-12-2007, 02:28 AM   #2
GS
Guest
 
Posts: n/a
Re: convert generic string list to one string

oops, pressed the enter key instead of backspace while correcting the
StingBuilder typo. my apology..

"GS" <> wrote in message
news:.gbl...
> thank you for the concern. That has been take care of. I am using
> stringboard and its append method.
>
> "Marc Gravell" <> wrote in message
> news:...
> > > starting with empty string

> >
> > If you do really mean "string" here, then note that this may be more
> > than a little inefficient, due to the immutability of strings (so your
> > loop would create *lots* of GEN0 objects, and consume telescoping
> > memory (i.e. n1 + [n1+n2] + [n1+n2+n3] + [n1+n2+n3+n4] + ... if you
> > see what I mean [give-or-take the separators]).
> > String concatenation inside a loop is an ideal candidate for
> > StringBuilder (which is supported under CF).
> >
> > Explanation:
> >
> > Of course, if you aren't actually using "string" concatenation then it
> > isn't an issue.
> >
> > Marc
> >

>
>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 10:11 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional