Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.25/5 (4 votes)
See more:
Hello everyone,

I have some modificarions in my C# coding for performance tuning...

I like to change string to stringbuilder in C# coding.....

But it shows error like "the tag or namespace 'stringbuilder' could not be found"......


So what is the solution to recover this problem



Can anyone help me?
Posted
Updated 4-Jun-12 7:31am
v2

1 solution

How about google?
See MSDN: Using the StringBuilder Class[^].

You are probably missing
C#
using System.Text;


Cheers
Andi
 
Share this answer
 
Comments
Shahin Khorshidnia 4-Jun-12 13:27pm    
+5
Andreas Gieriet 4-Jun-12 13:33pm    
Thanks for your 5!
Andi
Shahin Khorshidnia 4-Jun-12 13:30pm    
And also if the OP uses StringBuilder in the right spelling and notation (pay attention to uppercases) and got the same error, he/she can right click on the phrase and use Solve
Andreas Gieriet 4-Jun-12 13:39pm    
Fully agree! But that feature is a bit burried. I always have difficulties to catch that pop-up context menu. Is there any key-stroke to trigger that function (I'm an old Emacs hacker and still have the habit in any IDE to work on the keyboard as much as possible...).
Cheers
Andi
Shahin Khorshidnia 4-Jun-12 14:01pm    
Yes, I also use keyboard. "Crl+ . " is doing the same. and "Shift+F10" opens the context menu

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900