C# by Examples
Simple Code Snippets
Tags
Regex Tester
About
Privacy
Back to Home
Examples tagged with
#performance
When to Use async/await vs Task.Run in C#
#async
#fundamentals
#performance
C# checked and unchecked — integer overflow explained
#fundamentals
#performance
C# collections guide — List, Array, Dictionary, HashSet, Queue, Stack
#collections
#fundamentals
#performance
When to Use foreach vs for Loop in C#
#fundamentals
#loops
#performance
When to Use HashSet vs List in C#
#collections
#fundamentals
#performance
C# Span<T> and Memory<T> — zero-allocation slicing and high-performance buffers
#performance
#modern-csharp
Task.WhenAll, Task.WhenAny, and Task.Run in C#
#async
#fundamentals
#performance