C# Value vs Reference Types Explained

preview_player
Показать описание
In this video, we explore the differences between value types and reference types in C#, and how they behave when copied or compared. Learn how variables are managed in C# and understand why unexpected outcomes can occur when working with variables. Gain a deeper understanding of value types, reference types, memory storage, and common scenarios where these concepts are relevant. Watch now to master the fundamentals of value types and reference types in C#.

Рекомендации по теме
Комментарии
Автор

@3:56 - Correct me if I am wrong but shouldn't your arrows now point to p2 place in the heap? Line 22, is saying p1 should now point to the place on the heap that p2 is pointing. Everything you said would apply if the code on line 22 was p2 = p1; Again please correct me if I am wrong - I'm not trying to troll I'm trying to better understand and make sure others do too. Thanks for the video, Mark

craig_the_dev
Автор

dont normally comment but this video was insanely helpful thanks !

itsashhuby
Автор

So sad that discovered your channel this late, but this helps me learn a lot after tons of struggle. Definitely one of the most underrated coding channels I've ever saw keep it up!.

Sakach
Автор

Exactly the kind of explanation I needed, thank you Mark

thatokhumalo
Автор

Thanks, everything was clear. Now I can delve further

davidmuradyan
Автор

this was very helpful in preparation for my interview, thanks!

stillnotchill
Автор

Super helpful as a long-time engineer who needs to brush back up on C# again. I'm finding it's getting harder as I get older to keep up with stuff, maybe I gotta pick up coffee again 😅

x
Автор

Really well explained! Looking forward to your next video.

developingwoot
Автор

Those are valuable informations, thank you!

nijatshukurov
Автор

Great Explanation! Can you add your source code's link to the video description? Thank you!

emreduman