Nullability and Null Operators in C#

preview_player
Показать описание
Nullability and null operators were added to C# recently. Jeremy discusses the safeguards that nullability provides as well as the problems you still need to watch out for.

Chapters:
00:00 - Introduction
02:00 - Null reference exception demo
04:00 - Enable nullability
08:00 - Thread safety and null references
09:00 - Null conditional operators
10:00 - Tasks and continuations
11:00 - Null forgiving operator
14:00 - Null coalescing operator
17:00 - Combining operators
21:00 - Wrap-up

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

This demo was very informative and straightforward. It cleared out a lot for me. 😊

PetterIvarsson
Автор

Excellent presentation and the delivery was first class.

marklord
Автор

Thank you for this excellent explanation of the null issue. Your presentation was clear and concise, and I appreciate your brevity.

amjadislamamjad
Автор

Thank you Jeremy for the way you explain things. I immediately found your website and added it to my list of learning sources

ice
Автор

Light mode, perfect for my eyes. Thank you

sipepguru
Автор

Thank you for providing a link to the source.

GuildOfCalamity
Автор

Nice videos. Could you invite him once more to do some videos on the modern C# features? As well as Vectors and intrinsics?

obinnaokafor
Автор

Great explanation. Specially the ??= operator.

julianocs
Автор

Why does this video seem to imply that the null conditional makes the code thread-safe? He talks about the if statement and the cancellation not being thread-safe, but then they switch over to using the null-conditional operator without further addressing the issue of thread-safety? What... :/ It makes no sense that they gloss over that then just switch over to new syntax that doesn't address any of those concerns. I don't understand the point of bringing thread-safety into the talk without a corresponding resolve.

TheAceInfinity
Автор

Explicit code always wins over compressed and hard to ready code any day. The developers for C# should focus more on useful additions to the language instead of inventing 10 more ways of doing the exact same thing in harder to read ways.

yourcrazybear