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 338 of 397How to Use C# Custom Attribute Classes
Learn how to define, apply, and read C# custom attribute classes, including AttributeUsage constraints and reflection-based retrieval.
C# Attribute Declaration Syntax and Usage
Learn the exact syntax for C# attribute declaration, including constructors, properties, targets, and retrieval via reflection.
C# Attributes: Syntax, Usage, and Runtime Behavior
C# attributes from the ground up: what the metadata holds, AttributeUsage targets, custom attribute classes, and reading values at runtime with reflection.
C# Params Multiple Arguments
Learn how the C# params keyword lets methods accept multiple arguments without explicit arrays, including syntax, overload resolution, null handling, allocation tradeoffs, and when to use collections instead.
Using C# params Span for Efficient Method Calls
Learn how to use C# params Span<T> to pass variable-length data with fewer heap allocations and better performance in high-throughput methods.
C# Params Array: Syntax and Usage
Learn how C# params array syntax works, when to use it, and how it affects method calls, overload resolution, and performance.
Using the C# Collection Expression Spread Operator
c# collection expression spread operator: Learn how the C# collection expression spread operator works, including syntax, target typing, allocation behavior, and commo...
C# Collection Expression List Initialization
Learn how C# 12 collection expressions simplify list initialization with concise syntax, target typing, and the spread operator.
C# Collection Expressions for Array Initialization
Learn how C# 12 collection expressions simplify array initialization, including target typing, spread elements, and common limitations.
C# Collection Expression: Syntax and Examples
Learn how C# 12 collection expressions initialize arrays, lists, spans, and more with concise syntax and clear examples.