All syntax guides
Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.
3,965 guides across 14 topics
Topics
Popular guides
Most readLatest guides
Page 384 of 397C# String Join: Syntax, Overloads, and Practical Usage
Learn how to use string.Join in C# to concatenate arrays and collections, choose the right overload, handle null elements, and avoid common pitfalls.
C# String Split: Overloads, Options, and Pitfalls
Learn how to use C# String.Split for real-world parsing: overloads, delimiter types, StringSplitOptions, performance trade-offs, and common pitfalls with practical examples.
C# Substring: Syntax, Errors, and Alternatives
Learn how to use the C# Substring method correctly: syntax, boundary rules, common patterns, and allocation-aware alternatives for high-throughput code.
C# String Length: Property, Pitfalls, and Performance
Understand the C# string Length property, including UTF-16 code units, null handling, and performance trade-offs.
C# String Format: Composite Formatting and Specifiers
c# string format: Learn C# string format with composite formatting, format specifiers, alignment, culture handling, and performance tradeoffs.
C# String Interpolation Formatting: Syntax and Specifiers
C# string interpolation formatting: alignment, format specifiers, culture handling, common pitfalls, and performance tradeoffs.
C# String Interpolation: Syntax, Performance, and Edge Cases
Learn C# string interpolation syntax, compiled behavior, format specifiers, performance characteristics, and edge cases that matter in production code.
C# String Concatenation: Choosing the Right Approach
Learn how C# string concatenation works under the hood, compare the + operator, String.Concat, interpolation, and StringBuilder, and choose the right approach for your scenario.
C# String Usage: Methods, Immutability, and Performance
Explore practical C# string usage: common methods, immutability, concatenation, interpolation, comparison, and performance tradeoffs.
Using C# Span with Arrays for Zero-Allocation Slicing
c# span with arrays: Learn how to use Span<T> with arrays in C# to slice, modify, and pass array data without allocating new memory, and understand the ref struct limi...