Difference Between String and Stringbuilder in Csharp | C#.NET Interview Questions & Answers

preview_player
Показать описание

See our other Step by Step video series below :-
See our other Step by Step video series below :-

In this c# (Csarp) training section we will try to understand the difference string and stringbuilder.

-----------------------------------------------------------------------------------------------
For more details :-
📱 Mob. No. : +91-9967590707 / +91 7700975156 / +91-22-49786776

Share, Support, Subscribe and Connect us on!!!

#CSharpString #C#Stringbuilder #DifferenceBetweenString&Stringbuilder #C#InterviewQuestions #C#InterviewQuestionsforFreshers ##CSharpInterviewQuestions&Answers
Рекомендации по теме
Комментарии
Автор

nice video but still it is good to use string. I used string builder in my project. I was performing heavy string concatenation eventually string builder broke my application by throwing out of memory exception. String builder was expecting bigger chunk of memory although i disposed string builder object properly. I tried several ways to fix the issue, i tried using statement as well to specify scope. I was under same impression that string builder consumes lesser space. Ultimately i threw string builder in bin and used string concatenation and my application worked just fine. Nice video. ab Interviewer ko kaun samzhayega :D muzhe bhi yahi answere dena padega ;) Thanks

nh--
Автор

awesome tutorial especially justification using clrProfiler..

himanshuupreti
Автор

Always good to understand the basics. Thank for the info.

One concern:
You say that its good to use StringBuilder when the value changes too much.
But in the example, we are appending the value to the existing value and not completely changing the value from one to another.

i.e, adding the values to the existing one, not creating completely new value.

sandeshkota
Автор

This was very detailed and helpful explanation.
Thnk You So Much .! :)

BhramarBhatnagar
Автор

After corona virus, everyone understands what is mutable and non mutable. Like corona virus is mutable.

aswad