Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. stringbuilder, where has it gone?

stringbuilder, where has it gone?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestionlearning
5 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oceanexplorer
    wrote on last edited by
    #1

    Hi just working from a book that I think may be a couple of years old. They use the StringBuilder class to be able to build an output string. However I cannot call up this class in my ASP.Net project. Am I missing something? Or is there an alternative? Many thanks Paul Custance

    M J 2 Replies Last reply
    0
    • O oceanexplorer

      Hi just working from a book that I think may be a couple of years old. They use the StringBuilder class to be able to build an output string. However I cannot call up this class in my ASP.Net project. Am I missing something? Or is there an alternative? Many thanks Paul Custance

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi Paul. The StringBuilder class is in the System.Text namespace, so either make sure you are referencing the namespace with a using (C#) or imports (VB) statement, or fully qualify the object as System.Text.StringBuilder.

      O 1 Reply Last reply
      0
      • O oceanexplorer

        Hi just working from a book that I think may be a couple of years old. They use the StringBuilder class to be able to build an output string. However I cannot call up this class in my ASP.Net project. Am I missing something? Or is there an alternative? Many thanks Paul Custance

        J Offline
        J Offline
        Joel Parmer
        wrote on last edited by
        #3

        Hi Paul! The stringbuilder class is available in the System.Text namespace. Hopes that helps! Joel Parmer :cool:

        O 1 Reply Last reply
        0
        • M Mike Ellison

          Hi Paul. The StringBuilder class is in the System.Text namespace, so either make sure you are referencing the namespace with a using (C#) or imports (VB) statement, or fully qualify the object as System.Text.StringBuilder.

          O Offline
          O Offline
          oceanexplorer
          wrote on last edited by
          #4

          Hey Mike, Thanks ever so much. I added the directive Using System.Text; and it now works a treat! A thought it might be that but the silly book forgot to mention it!! Cheers for your help Paul Custance

          1 Reply Last reply
          0
          • J Joel Parmer

            Hi Paul! The stringbuilder class is available in the System.Text namespace. Hopes that helps! Joel Parmer :cool:

            O Offline
            O Offline
            oceanexplorer
            wrote on last edited by
            #5

            Hey Joel, All is sorted and working. Cheers for the help. Paul

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups