CKTIS / C#
System.String: practical reference
System.String: practical reference: String is an immutable UTF-16 sequence; operations create new strings when content changes.
Version: .NET API; verified against .NET 10 reference surface
Syntax
System.String /* select a documented member or constructor */String is an immutable UTF-16 sequence; operations create new strings when content changes.
Use it for text while selecting culture and comparison mode explicitly.
Length counts UTF-16 code units rather than graphemes; concatenation in a loop can allocate heavily.
An empty string differs from null, and characters outside the BMP occupy a surrogate pair.
The complete program actually uses System.String; its exact expected stdout is C-sharp.
Examples
using System;
using System.Buffers;
using System.Collections.Concurrent;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Number = System.Int32;
var text = string.Join("-", new[] { "C", "sharp" });
Console.WriteLine(text);
Result
C-sharp
The complete program actually uses `System.String`; its exact expected stdout is `C-sharp`.