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 358 of 397C# Generic Method: Syntax, Constraints, and Behavior
Learn C# generic method syntax, constraints, type inference, runtime behavior, and common pitfalls.
C# Generic Class: Type-Safe Reusable Code
Learn how to declare and use C# generic classes, apply type constraints, avoid common pitfalls, and understand runtime behavior.
C# Generics: Type Safety Without Duplication
Learn how C# generics preserve types without duplication, from generic classes and methods to constraints, variance, and runtime tradeoffs.
C# HashSet vs SortedSet: Choosing the Right Collection
Compare C# HashSet and SortedSet on performance, ordering, memory, and use cases so you can choose the right collection for your data operations.
C# Dictionary vs SortedDictionary: Which to Use?
Compare C# Dictionary and SortedDictionary: ordering guarantees, lookup performance, memory behavior, and practical guidance for choosing between them.
C# SortedSet Usage: Ordered Set in .NET
Learn how to use C# SortedSet<T> for ordered, unique collections: creation, operations, custom comparers, and performance tradeoffs.
C# SortedDictionary Usage: Ordering and Performance
Learn how to use C# SortedDictionary for automatically ordered key-value storage, including custom comparers, performance tradeoffs, common pitfalls, and when to choose it over SortedList or Dictionary.
C# SortedList Usage: Sorting Key-Value Pairs Efficiently
c# sortedlist usage: Learn how to use SortedList<TKey, TValue> in C#: creation, insertion, lookup, iteration, and when to prefer it over SortedDictionary.
C# List vs LinkedList: When the Difference Matters
Compare C# List<T> and LinkedList<T> on storage, indexing, insertion cost, and memory behavior to choose the right collection for your workload.
Working with LinkedListNode in C#
Learn how to use LinkedListNode<T> in C# to traverse, insert, and remove nodes in a LinkedList. Includes code examples, performance tradeoffs, and common pitfalls.