C# Hashsets - Understand them, use them, LOVE them

  Рет қаралды 16,416

tutorialsEU - C#

tutorialsEU - C#

Күн бұрын

Пікірлер
@tutorialsEUC
@tutorialsEUC Жыл бұрын
🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg
@codeme8016
@codeme8016 Жыл бұрын
I've worked with several languages including Java, C++, and Python. In my opinion C# (now dotnet core) has been the most comprehensive and clear syntax I've experienced with a lot of great new features with every new version. Just love it.
@josephh8117
@josephh8117 2 ай бұрын
yeah as much as I hate Microsoft, they do seem to take a lot of what people like about other languages and integrate them in various ways
@codeme8016
@codeme8016 2 ай бұрын
@@josephh8117 And I don't even have Windows. I've been a Linux user for decades.
@kelvinclements
@kelvinclements Жыл бұрын
Under the arrays your adding stuff into the list not the array
@wimlotz713
@wimlotz713 9 ай бұрын
Hi there, someone probably mentioned this but your array section is adding to your list
@salihgireniz3713
@salihgireniz3713 11 ай бұрын
dude introduced hashsets to us like it's our lord and saviour. Now I am a disciple.
@antoninvojtesek1084
@antoninvojtesek1084 10 ай бұрын
Very well presented. Thank you.
@VivekSingh-og6tv
@VivekSingh-og6tv Жыл бұрын
Thank you Brother 😇 your videos help me to learn about .Net c#.
@tutorialsEUC
@tutorialsEUC Жыл бұрын
Happy to hear that. I'm also excited to learn more and teach what I've learned :)
@BluetonicUK28
@BluetonicUK28 11 ай бұрын
Just curious, is this quicker than LINQ using Distinct() ?
@aliahmadi3902
@aliahmadi3902 3 ай бұрын
Thanks👍
@ShivamSharma-sg7dk
@ShivamSharma-sg7dk Жыл бұрын
Great video. According to you, what are the most used methods for HashSets?
@michaelgervasoni8009
@michaelgervasoni8009 Жыл бұрын
Great video. I find myself using collections more than hashsets in c#, because normally the data has key-value pairs (such as id and description). And in MVC drop downs for example normally require a key value pair like a selectlist. Do you have any thoughts on collections vs lists vs hashsets? After watching this I’m wondering if there are places I can simplify collections into hashsets, or do you find most real-life apps require collections because we normally have unique ids associated with our data?
@tutorialsEUC
@tutorialsEUC Жыл бұрын
Hi, I think that this is quite hard to answer because it relies on the purpose of your code. Fact is, that you should try to take the best data structure for your codes purpose. Usually you will be fine with any kind of collection and if you do not care about duplicates an array or a list will be your best bet. If you need kvps then a dictionary and if they you don't want duplicates, you pick the hashset. It really depends... :)
@qwerty89993
@qwerty89993 Жыл бұрын
thanks!
@rmcgraw7943
@rmcgraw7943 4 ай бұрын
The functionality you describe and show is great, but God forbid someone choses to do this, unless the data has already been retrieved, in application code. This should be done by the database; after all, it’s actually BUILT with data manipulation as it’s primary purpose. I can do all the stuff here with the Distinct, Group By, and Join clauses of SQL. In any case, the fact that the data is keyed on it’s actual hashcode is useful for various scenarios. In the data world, that’s called a natural key, and it means that the key IS the data, so it’s very fast at retrieving data. Using hashsets, of course, can very quickly lead to custom implementations of GetHashcode for objects added to the set. Good video all the same.
@jonlbs7
@jonlbs7 Жыл бұрын
✨✨✨✨✨✨👍👍👍👍
@yassinbenyahia6801
@yassinbenyahia6801 17 күн бұрын
so you are telling me that this is hashset this simple ? well let's go to see what we got at leet code
ViewModels in ASP.NET MVC applications - This is how it works
7:13
tutorialsEU - C#
Рет қаралды 24 М.
Understand your C# queries! IEnumerable & IQueryable in explained
11:28
tutorialsEU - C#
Рет қаралды 41 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Hash Tables in C# - How to use and when to use?
16:13
tutorialsEU
Рет қаралды 26 М.
Here Is Why HashSet Is So Fast in .NET
26:24
Zoran Horvat
Рет қаралды 9 М.
Threads 7 - Background Worker
16:18
C# Artisan
Рет қаралды 24
C# abstract classes and methods in 8 minutes
8:20
tutorialsEU - C#
Рет қаралды 13 М.
Singleton Design Pattern in C# - Do it THAT way
13:15
tutorialsEU - C#
Рет қаралды 30 М.
Using JSON IN C#! Serialization & Deserialization made easy!
14:47
tutorialsEU - C#
Рет қаралды 36 М.
When to use - IEnumerable vs IList vs ICollection?
12:05
DotNetMastery
Рет қаралды 52 М.
What are Delegates? (C# Basics, Lambda, Action, Func)
18:39
Code Monkey
Рет қаралды 304 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1 МЛН
C# Yield - Creating Iterators for beginners
5:52
tutorialsEU - C#
Рет қаралды 11 М.