Working with Null in .NET 6 and C# 10

preview_player
Показать описание
Unless you are very new to C#, you have almost certainly worked with null. In some ways, it can seem very easy to understand. However, there is a lot more depth to working with null than it first seems. In this video, we are going to look at how to properly work with null in C#. That includes nullable value types, nullable reference types, null conditional operators, null-coalescing operators, null-coalescing assignment operators, nullable annotation context, nullable directives, the null-forgiving operator, and more. Let's see how many of these you know how to use.

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

I am a fairly advanced C#/C++ Software Engineer and I really enjoy your teaching style. You teach like you are speaking to a beginner and you are very professional, flexible and articulate. Plus I do not feel like I am being talked down to like some of the other you tube channels. Thanks again for a great video!

mcintoshdev
Автор

To be honest at first I was like why should I watch 1 hour video on NULL but at last I am glad I did, cos it was insightful and it bring clarity to the subject. Thank you Tim.

tosinakinyemi
Автор

After watching this video, for me "What are nullables?" CHAPTER has been CLOSED. Thank you Mr. Tim Corey.👍

mrsajjad
Автор

This is awesome Tim! Big help for my migration to .Net6. I’ve been seeing a lot of null-related warnings and this answers a lot (if not all) of my questions. Thank you very much!!

cisip
Автор

Learned from you something new though beeing a 30 years professional just coming back to C# after a while. Your stye is awesome. Thank you!

stef
Автор

Everything anyone would want to know about null in C# 6+ at one place, thank you so much for the great content :)

ivetaivanova
Автор

Me: Is confused on a subject
Tim: Uploads a tutorial on that subject

lucazl
Автор

Hi please make a tutorial full on c# basics in depth . I like your way of teaching style.

maryambibi
Автор

Good tutorial on nullable things in C#! Will recommend to my team migrating big project to .NET 6.

alexrusnak
Автор

Thanks for your valuable video . i was recently started working on .Net 6 C# i came across these warning which were new to me. i did search and use only ? and ! operators. now i can do more and with confidence after this. Thanks once again.

KnowlegeStream
Автор

Great Video, as Always! It is targeted at beginners, so for me it was a bit long and I skipped a lot. A shorter viodeo, just on the feaatures that are not in previous versions would have been better for me. I know you primarly target beginners, so this goes into a lot of detail they may actually need to knw. Agaain... Great Video... keep up the good work!

micro
Автор

Great video! Refactored a lot of my actual project with ??= and the null forgiving operator. Can't wait for the next sale on your website I will buy a lot of courses.

pqners
Автор

Didn't know I can watch a video about nothing for an hour xD!
Was wondering what they did with the IDE because all these null warnings were driving me crazy, thanks for a very well explanation and making better coders of us all!

Terminator
Автор

That null forgiving operator is more trouble than it's worth IMHO, I'll never use it. However, having recently started a new project in net 7, the extra null warnings and suggestions are massively improving my code and making me think about the design in ways I wasn't doing before. The resulting code is clearly better and more resilient, huge improvement from MS in that area.

swordblaster
Автор

Thanks I was confused about the nullable option and the operators

coding_refactor
Автор

thanks man, this is really an all-in-one tutorial that I have been looking for!

fanpeter-zc
Автор

Love your videos as they are very comprehensive and very nicely explained. Thanks a lot.

MukundanMA
Автор

Great video Tim! I wish this (detailed explanation on Nulls) was included in your complete C# Masterclass. I find it frustrating bc I have to go through the Masterclass and then find YT videos to get more info on a topic (I know your classes teach in layers and not all at once). Maybe add links in your paid videos (in each chapter) which point to your free YT videos? Reagardless keep up the good work!

vssang
Автор

Know all this stuff but ??= was a surprise, thanks for the thorough handling.

PierreO
Автор

Special thanks for explaining about conditional operator! Never used it before and couldn't find answer with uncomplicated requests like "What means ? in .NET/C#?" just like you said😵

АлександрБорисов-пъ