Why is it efficient to use System.string under System.Text.StringBuilder ?



Why is it efficient to use System.string under System.Text.StringBuilder ?..

Answer / Jinkal Chaudhary

Using System.Text.StringBuilder instead of System.String for concatenating strings in C# can improve performance because StringBuilder is designed to handle string manipulation more efficiently, especially when dealing with large amounts of text.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is trim in c#?

1 Answers  


Explain About sn.exe

1 Answers  


What is the difference between finalize() and dispose() methods?

1 Answers  


Overloaded constructor will call default constructor internally?

1 Answers  


What is the difference between throw and throw ex?

1 Answers  


How to call a function when a class implements 2 interfaces and function is present in both interfaces?

2 Answers  


What do you mean by string objects are immutable?

1 Answers  


What are circular references?

1 Answers  


explain DIFFERENCE BETWEEN CLASS AND MODULE?

3 Answers  


Is an interface a type c#?

1 Answers  


What are the advantages of using delegates in c#?

1 Answers  


What is console write in c#?

1 Answers  


Categories