Results 1 to 4 of 4

Thread: StringBuilder vs String ?

Threaded View

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    StringBuilder vs String ?

    I'm using stringbuilder instead string (for critical performance issue) . Anyway , in this for loop ,
    am I creating string objects(with the bolded font each time I call this line :

    Code:
    SplitedFilWriteStream = File.Create(Path.Combine(OutputPath ,FileNameOnly+segName[nSegmentCount-1].ToString() ));

    The for loop looks like this :

    PHP Code:
    for (nSegmentCount =1nSegmentCount <=nSegments_CompletetBuffered;nSegmentCount++)
        {
    segName.Append(nSegmentCount);    
    SplitedFilWriteStream File.Create(Path.Combine(OutputPath ,FileNameOnly+segName[nSegmentCount-1].ToString()));
    SegmentTotal += 1
    Last edited by Pirate; Nov 27th, 2004 at 08:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width