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 343 of 397C# Deconstruct Method: Syntax and Use Cases
Learn how to implement and use the C# Deconstruct method to unpack objects and tuples into individual variables, including syntax, overloads, pattern matching, extension methods, and common pitfalls.
C# Recursive Pattern Matching Explained
Learn how recursive patterns in C# simplify complex data inspections with nested positional and property patterns, switch expressions, and pattern combinators.
C# Is Pattern Matching: Syntax and Use
c# is pattern matching: Learn how the `is` pattern in C# works, from type checks to property and relational patterns, with practical code examples and performance insi...
C# List Pattern: Match Collections with Concise Syntax
c# list pattern: Understand C# list patterns, a concise way to match collection length and elements in pattern matching contexts.
C# Positional Pattern: Matching Objects by Shape
Learn how the C# positional pattern uses deconstruction to match objects by shape, with practical switch-expression examples and common pitfalls.
C# Property Pattern with Examples
Learn how to use the C# property pattern to match objects based on their properties, with practical examples and common pitfalls.
Using the C# Constant Pattern in Switch Expressions
Learn how the C# constant pattern works in switch expressions and statements, including syntax, matching rules, and practical use cases.
C# Type Pattern: Syntax and Usage
Learn how to use the C# type pattern with is expressions and switch statements for type testing and property matching.
C# Pattern Matching: Syntax and Practical Use
c# pattern matching: Explore C# pattern matching with practical examples: type, property, and positional patterns, switch expressions, and when to use them effectively.
Creating a C# Custom Iterator with yield
c# custom iterator: Learn how to build a C# custom iterator using yield return, when it's useful, and how it affects performance and memory.