ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Difference Between String and StringBuilder In C#

Автор: CodAffection

Загружено: 2015-08-29

Просмотров: 6834

Описание: C# tutorial on the difference between string and StringBuilder(string vs StringBuilder).

Main Differences.

1) NameSpace

StringBuilder belongs to System.Text Namespace and that of the string is System.

2) Mutability and Immutability

String is mutable and StringBuilder is immutable.

The mutability of string can be explained as a process for creating new instances when an operation on it changes its value. While StringBuilder does not create new fresh instances like a string instead it overwrite existing instance.

3) Performance

StringBuilder is more efficient than string in c#. Since it doesn't create garbage instances after each operation on it.while in string operation it creates useless intermediate instances.

One Last Point

String won't create new instance all the time.it creates a new instance only when the operation changes its value. So concatenating empty string won't create a new instance.

📂 GitHub Repository
► https://goo.gl/4TgTbj

💖 Buy me a Coffee
➤ https://bit.ly/3L36ut4 (PayPal)
➤ https://bit.ly/3VF0iPT (Razorpay)

🌀 Related Videos
https://goo.gl/iaYpYH : Why .NET String is immutable ?
https://goo.gl/EyfgbN : Code Execution Time in C#.
https://goo.gl/4bSr38 : String Vs string In C#.

🔗 Find me in
Udemy : https://bit.ly/3RtyQSB
Facebook :   / codaffection  
GitHub : https://github.com/codaffection
Discord :   / discord  
Twitter :   / codaffection  

#CSharp #CodAffection

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Difference Between String and StringBuilder In C#

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

How to Measure Code Execution Time In C#

How to Measure Code Execution Time In C#

How to Create Setup Installation File in Visual Studio

How to Create Setup Installation File in Visual Studio

Introduction to C# With Hello World Program - C# Tutorial For Beginners

Introduction to C# With Hello World Program - C# Tutorial For Beginners

Single Inheritance in C++ | Introduction to Inheritance | C++ OOP Tutorial for Beginners

Single Inheritance in C++ | Introduction to Inheritance | C++ OOP Tutorial for Beginners

C# Tutorial For Beginners

C# Tutorial For Beginners

Angular & .Net Core API - Authorization (Role, Claim & Policy)

Angular & .Net Core API - Authorization (Role, Claim & Policy)

Angular Login & Logout with Asp.Net Core Identity & JWT

Angular Login & Logout with Asp.Net Core Identity & JWT

Top Christmas Songs of All Time 🎄 Merry Christmas Songs 2026 🎁 Best Christmas Music Playlist 2026

Top Christmas Songs of All Time 🎄 Merry Christmas Songs 2026 🎁 Best Christmas Music Playlist 2026

Satya Nadella demos an app he built | Microsoft AI Tour Bengaluru

Satya Nadella demos an app he built | Microsoft AI Tour Bengaluru

Top 10 Dying Programming Languages In 2026 | Languages Likely Fading/Obsolete By 2026 | Simplilearn

Top 10 Dying Programming Languages In 2026 | Languages Likely Fading/Obsolete By 2026 | Simplilearn

Complete CRUD with Node.js, Express, MongoDB & Express-Handlebars

Complete CRUD with Node.js, Express, MongoDB & Express-Handlebars

Introduction to Data and Statistical Analysis with R Day 1

Introduction to Data and Statistical Analysis with R Day 1

The AI Bubble Explained Like You're 5

The AI Bubble Explained Like You're 5

Otter AI review | Is it the Best Speech-to-Text AI Tool?

Otter AI review | Is it the Best Speech-to-Text AI Tool?

AJAX-Based Django CRUD Tutorial with SQLite – Create & Retrieve Made Easy

AJAX-Based Django CRUD Tutorial with SQLite – Create & Retrieve Made Easy

Soteria Rust

Soteria Rust

Custom Login & Registration in .NET & React | Secure Authentication with Web API

Custom Login & Registration in .NET & React | Secure Authentication with Web API

Constructors in C# | C# OOP Tutorial for Beginners in Hindi | Types of Constructors with Examples

Constructors in C# | C# OOP Tutorial for Beginners in Hindi | Types of Constructors with Examples

React Hook Form - 1. Introduction

React Hook Form - 1. Introduction

BURZA W SEJMIE - AWANTURA NA POCZĄTKU OBRAD!

BURZA W SEJMIE - AWANTURA NA POCZĄTKU OBRAD!

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]