Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,980 guides across 14 topics

Topics

Latest guides

Comparison of generic and non-generic collections in C# showing type safety and performance differences.
C#

C# Generic vs Non-Generic: Type Safety and Performance

Compare generic and non-generic types in C#, including type safety, boxing overhead, code clarity, and when to choose each approach.

C#GenericsType SafetyCollections
Illustration of C# nullable operators showing a chain of null checks with ?. and ?? operators
C#

C# Nullable Operators: Syntax and Usage

Learn how C# nullable operators ?., ??, and ??= simplify null handling, help prevent NullReferenceException, and make code more readable.

C# null handlingnull-coalescing operatornull-conditional operatornull-coalescing assignment
Diagram comparing C# Parse, TryParse, and Convert methods for string to integer conversion, showing exception paths and boolean returns.
C#

C# Parse vs TryParse vs Convert

Compare C# Parse, TryParse, and Convert for string-to-number conversion, including exception behavior, null handling, and practical use cases.

String ConversionException HandlingType CastingC# Syntax
Diagram showing override and new method behavior in C# inheritance
C#

C# override vs new: Choosing the Right Method Behavior

Understand the practical difference between override and new in C#: how each affects polymorphism, virtual dispatch, and when to use it.

C#method overridingmethod hidingpolymorphism
Diagram showing virtual and abstract method override behavior in C# inheritance
C#

C# Virtual vs Abstract: When to Use Each

Understand the difference between virtual and abstract members in C#, when to use each, and how they affect inheritance and polymorphism.

C#virtualabstractinheritance
Illustration contrasting a C# method inside a class with a standalone function concept, showing how methods are bound to types.
C#

C# Method vs Function: What Actually Differs

c# method vs function: Understand the real difference between methods and functions in C#, including local functions, static methods, delegates, and when the distincti...

C# methodsC# functionsmethod syntaxlocal functions
A visual comparison of C# field and property showing encapsulation layers
C#

C# Property vs Field: When to Use Each

Learn the differences between C# properties and fields, including encapsulation, validation, computed values, performance, and when to choose each.

C#propertiesfieldsencapsulation
Diagram comparing C# delegate and event invocation paths, showing how events restrict external callers.
C#

C# Delegate vs Event: The Practical Difference

Learn the practical differences between delegates and events in C#, including invocation rules, access control, and when each design fits your code.

delegateseventsC# programmingevent handling
Illustration comparing C# List and Dictionary collections with keys and indices.
C#

C# List vs Dictionary: Choosing the Right Collection

c# list vs dictionary: Compare C# List and Dictionary for lookups, iteration, and memory. Learn when each collection fits best with code examples.

C# CollectionsListDictionaryPerformance
Illustration showing three C# parameter modifier keywords ref, out, and in with arrows indicating data flow direction between caller and method.
C#

C# ref vs out vs in: Parameter Modifiers Explained

c# ref vs out vs in: Understand how ref, out, and in parameter modifiers differ in C#, when each is is required,, and how they affect runtime behavior and API design.

C#parameter modifiersref out inmethod parameters