With all the syntax options in C# one thing might look like the other, but that is not always the case! Can you spot what is wrong with one of these properties?!

๐Ÿ’ Join this channel to get access to perks:
https://www.youtube.com/channel/GeraldVersluis/join

Disclaimer: this channel is done on personal title, in my free time, and not officially affiliated with or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

๐Ÿ›‘ Don’t forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1

๐Ÿฆ Follow me on Twitter: https://twitter.com/jfversluis
๐Ÿค Join the Discord server: https://discord.gg/2cAyTGNHBD

๐Ÿ”— Links
C#: Properties Documentation: https://learn.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/properties

โฑ Timestamps
0:00 – C# Properties, Watch Out For This!
0:07 – Two Properties, Are They The Same?
0:26 – Testing Our Properties
0:36 – Uh-Oh

๐ŸŽฅ Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD

๐Ÿ™‹โ€โ™‚๏ธ Also find my…
Blog: https://blog.verslu.is
Twitch: https://twitch.tv/jfversluis
All the rest: https://jfversluis.dev

#csharp #properties #memoryleak #dotnet #vs2022

source