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 379 of 397C# this Member Access: Syntax and Use Cases
Learn how the C# this keyword refers to the current instance, resolves member access, enables constructor chaining, and where it cannot be used.
C# This Keyword: Usage and Common Pitfalls
Understand the C# this keyword: use it in constructors and extension methods, resolve name collisions, and see where it is optional, required, or forbidden.
C# Static Members Explained with Practical Examples
Understand C# static members: how static fields, methods, properties, constructors, and classes behave, when to use them, and how they differ from instance members.
C# Instance Members Explained
Learn how C# instance members define per-object state and behavior through fields, properties, methods, constructors, and the this keyword.
C# Member Variables Explained with Examples
Understand C# member variables: field syntax, initialization, static vs instance, readonly and const, and when properties are the better choice.
C# Field Usage: Declaration, Initialization, and Access
Learn how to declare, initialize, and access fields in C#, including readonly and static modifiers, and when to choose fields over properties.
Understanding C# Class Members
Learn how C# class members define data and behavior: fields, properties, methods, constructors, events, nested types, and static members with practical examples.
Understanding the C# new Keyword: Operator, Modifier, and Constraint
Learn the three roles of the C# new keyword: the new operator, the new modifier, and the new() constraint, with code examples and common pitfalls.
C# Ref Return: Syntax, Usage, and Performance
Understand C# ref returns: syntax, ref locals, restrictions, and the performance tradeoffs of returning references to array elements and fields.
Passing an Array to a Method in C#: Syntax and Behavior
Learn how C# passes arrays to methods as references, including params, ref, and ReadOnlySpan for read-only access.