/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/csharp/immutability2.cs
21 строка
495 B
Genevieve Warren
Add remarks for core types (#38970)
05 янв 2024, 22:14
Не верифицирован
05 янв 2024, 22:14
71d1377
Код
Авторство
О чём код?
// <Snippet1> using System; public class Example7 { public unsafe static void Main() { string value = "This is the first sentence" + "."; fixed (char* start = value) { value = String.Concat(value, "This is the second sentence. "); fixed (char* current = value) { Console.WriteLine(start == current); } } } } // The example displays the following output: // False // </Snippet1>