Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 2 of 2

Thread: When exactly should a StringBuilder be used?




  1. #1
    Join Date
    Oct 2002
    Posts
    42

    Default

    Hi!

    I’m very interesting in when to use exactly the StringBuilder?

    For example for something like this?:

    String strTest1 = “This”;
    String strTest2 = “Test”;
    StringBuilder stbTest = new StringBuilder();
    stbTest.Append(strTest1). Append(“is a ”). Append(stbTest);


    can someone provide some sample codes when to use a StringBuilder?

    And can someone tell me his experience about the performance of a StringBuilder?


    Regards,


    gicio

  2. #2
    Join Date
    Nov 2001
    Posts
    674

    Default

    Maybe if you could give us a bit more detail on what this "StringBuilder" is... my intuition would say all that code above is doing is appended some strings together rather elaborately and pointlessly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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