stringbuilder, where has it gone?
-
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
-
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
Hi Paul. The
StringBuilder
class is in theSystem.Text
namespace, so either make sure you are referencing the namespace with ausing
(C#) orimports
(VB) statement, or fully qualify the object asSystem.Text.StringBuilder
. -
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
Hi Paul! The stringbuilder class is available in the System.Text namespace. Hopes that helps! Joel Parmer :cool:
-
Hi Paul. The
StringBuilder
class is in theSystem.Text
namespace, so either make sure you are referencing the namespace with ausing
(C#) orimports
(VB) statement, or fully qualify the object asSystem.Text.StringBuilder
.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
-
Hi Paul! The stringbuilder class is available in the System.Text namespace. Hopes that helps! Joel Parmer :cool:
Hey Joel, All is sorted and working. Cheers for the help. Paul