Duration 18:13

How to Avoid Null Reference Exceptions: Optional Objects in C

12 012 watched
0
1.1 K
Published 9 Feb 2023

Are you tired of dealing with null reference exceptions in your C# code? In this video, I'll show you how to avoid null reference exceptions using optional objects in C#. Null reference exceptions can be frustrating to deal with and can lead to your program crashing. But fear not, because, with my expert tips and tricks, you'll be able to handle them with ease. I'll cover the basics of null reference exceptions, including how to fix and handle them. I'll also cover topics such as nullable vs. optional objects, will discuss the difference between nullable and optional objects, and how to use them to your advantage.⚡️❤️ By the end of this video, you will have a clear understanding how to avoid the need for nulls, thus removing the threat of a NullReferenceException in C#, and how to use optional objects effectively.❤️ My channel is dedicated to object-oriented programming, including C#, dotnet, and functional programming. I provide tutorials, tips, and tricks for programming in C#, making it easy for beginners and experienced programmers alike. Whether you're new to C# programming or a seasoned professional, my channel is the perfect resource for improving your programming skills. With Zoran Horvat, you'll have access to the best C# tutorials and programming resources to take your programming skills to the next level.❤️ So, If you're tired of dealing with null reference exceptions in C# programming, then be sure to subscribe to our channel for the latest programming tips and tricks.🔥❤️ ✅🔔Become a patron and get access to source code and exclusive live streams: https://www.patreon.com/posts/null-conundrum-c-81382208 ✅🔔 Subscribe ► /channel/UCxsWfh8LCcn55mFB6zGBT1g ⭐ Learn more from video courses: Beginning Object-oriented Programming with C# ► https://codinghelmet.com/go/beginning-oop-with-csharp ⭐ Collections and Generics in C# ► https://codinghelmet.com/go/collections-and-generics-in-cs ⭐ Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-your-cs-code-more-oo 🗳 Pluralsight Courses ► https://codinghelmet.com/go/pluralsight 📸 Udemy Courses ► https://codinghelmet.com/go/udemy ▬▬▬▬▬▬▬▬▬▬▬ ⚡️ Have a look at our other Videos: 👉 Other videos on this channel you may be interested in watching: Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ► /watch/IBanj5gMtkXMn 👉 Coding with GitHub Copilot - Beginner to Master | VS Code Demo ► /watch/4TfI90vKD9BKI 👉 What is Covariance and Contravariance in C# ► /watch/gpsHqQYi5pWiH How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ► /watch/49FH_G1zGN3zH ⚡️Chapters: ▬▬▬▬▬▬▬▬▬▬▬ ⌚ 0:00 Today's Topic: Optional Objects in C# ⌚ 0:58 How to Avoid Null Reference Exceptions ⌚ 17:53 Outro ▬▬▬▬▬▬▬▬▬▬▬ #null #optionalobjects #csharp #dotnet #objectorientedprogramming #dotnet #zoranhorvat ▬▬▬▬▬▬▬▬▬▬▬ ⭐ CONNECT WITH ME 📱👨 🌐Buy me a Coffee ► https://ko-fi.com/zoranhorvat 🗳 Pluralsight Courses ► https://codinghelmet.com/go/pluralsight 📸 Udemy Courses ► https://codinghelmet.com/go/udemy 📸 Join me on Twitter ► https://twitter.com/zoranh75 🌐 Read my Articles ► https://codinghelmet.com/articles 📸 Join me on LinkedIn ► https://www.linkedin.com/in/zoran-horvat/ ▬▬▬▬▬▬▬▬▬▬▬ 👨 About Me 👨 Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️ ▬▬▬▬▬▬▬▬▬▬▬ ⚡️RIGHT NOTICE: The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorised to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above. ⭐For copyright or any inquiries, please contact us at zh@codinghelmet.com

Category

Show more

Comments - 115