What’s the difference between System.String and
System.Text.StringBuilder classes with example
Answers were Sorted based on User's Feedback
Answer / sudha
System.string works on copy of string data.
System.Text.StringBuilder works on actuval string data
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / puneet mishra
according to me difference between a string class and using String Builder is that in using a string class you need to create new object befour appending it to the main string but in string builder class one don`t need to create object every time
Example for string builder class:
using System.Text;
stringBuilder str = new stringBuilder;
str.append("");
in the previous example once u create str as new instance of string builder class u just have to append every thing in to the string
| Is This Answer Correct ? | 3 Yes | 2 No |
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
How to Install uninstall assemblies into GAC?
Why do we use stringbuilder in c#?
How to implement singleton design pattern in c#?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
what is the difference between finally and dispose methods?
Is c# a strongly-typed language?
Explain About Virtual functions and their use.
What is data binding c#?
What are functions in c#?
Why do we use class in c#?
Are structs value types c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)