C# by Examples
Simple Code Snippets
Tags
Regex Tester
About
Privacy
Back to Home
Examples tagged with
#collections
C# collections guide — List, Array, Dictionary, HashSet, Queue, Stack
#collections
#fundamentals
#performance
C# Dictionary guide — add, lookup, iterate, and common patterns
#collections
#fundamentals
When to Use Dictionary vs Hashtable in C#
#collections
#fundamentals
When to Use HashSet vs List in C#
#collections
#fundamentals
#performance
When to Use IEnumerable vs IQueryable in C#
#linq
#collections
#fundamentals
How to iterate over a dictionary
#collections
#loops
LINQ aggregate methods in C# — Sum, Count, Average, Min, Max, Aggregate
#linq
#collections
How to find elements in a list with LINQ in C#
#linq
#collections
How to use LINQ GroupBy in C#
#linq
#collections
How to join collections with LINQ in C#
#linq
#collections
How to sort with LINQ OrderBy in C#
#linq
#collections
How to use LINQ Select in C# (projection examples)
#linq
#collections
How to filter collections with LINQ Where
#linq
#collections
How to Check if a List is Empty
#collections
#linq
#fundamentals
When to use List vs Array in C#
#collections
#fundamentals
How to Merge Two Lists
#collections
#linq
How to remove duplicates from a list
#collections
#linq
How to sort a list by property in C#
#collections
#linq
How to sort a list in C#
#collections
#linq
C# Stack and Queue — push, pop, enqueue, dequeue, and when to use each
#collections
#fundamentals