NullReferenceException is an error that programmers frequently encounter, and it is often referred to as the Billion Dollar Mistake. This course is designed to assist you in avoiding this error.
You will begin by gaining an understanding of when NullReferenceException is thrown and how to prevent null in your code. You’ll also learn how to employ nullable operators to simplify null checks and use nullable references and the Option wrapper to identify problematic code blocks. Finally, you will explore avoiding NullReferenceException when using specific LINQ methods and designing your C# classes.
Upon completing this course, you’ll have gained the necessary knowledge and skills to effectively address and avoid NullReferenceException issues in your projects.
NullReferenceException is an error that programmers frequently encounter, and it is often referred to as the Billion Dollar Mist...Show More
WHAT YOU'LL LEARN
An understanding of NullReferenceException and when it can be thrown
A working knowledge of C# nullable operators to simplify null checks
The ability to identify problematic code blocks using C# nullable references
Familiarity with the Option wrapper to avoid NullReferenceException
The ability to avoid NullReferenceException when working with some LINQ methods
An understanding of NullReferenceException and when it can be thrown
Show more
Content
1.
Strategies to Get Rid of NullReferenceException
18 Lessons
About This CourseWhat Is the NullReferenceException?Exercise: NullReferenceException and CollectionsQuiz on NullReferenceExceptionChecking and Preventing NullExercise: Refactoring a Function to Prevent NullC# 6.0-8.0 Nullable OperatorsQuiz on Nullable OperatorsC# 8.0 Nullable ReferencesExercise: Fixing Compilation Errors with Nullable ReferencesUse the Option WrapperExercise: Practicing Utility Methods from the Optional LibraryImplement Your Option WrapperLINQ XOrDefault MethodsExercise: LINQ XOrDefault MethodsSeparate Objects and Separate StateExercise: Solve a Real NullReferenceException IssueWrap Up!
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources