| | |
using in lass StringBuilder
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
String builder can have advantages when buidling up output. So instead of a ton of
s += titletext;
s += "\r\n--------";
etc
you can just do
sb.append(newtext);
sb.appendline("---------");
it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.
s += titletext;
s += "\r\n--------";
etc
you can just do
sb.append(newtext);
sb.appendline("---------");
it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Oct 2008
Posts: 63
Reputation:
Solved Threads: 0
[QUOTE=LizR;750021]String builder can have advantages when buidling up output. So instead of a ton of
s += titletext;
s += "\r\n--------";
etc
you can just do
sb.append(newtext);
sb.appendline("---------");
it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.[/QUO
thanks LIZR
s += titletext;
s += "\r\n--------";
etc
you can just do
sb.append(newtext);
sb.appendline("---------");
it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.[/QUO
thanks LIZR
![]() |
Other Threads in the C# Forum
- Previous Thread: listview looping
- Next Thread: Merge Tables
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml






