← Back
James Montemagno September 10, 2021 15m

No more null exceptions in C# with null-coalescing, ?? and ??= operators

Summary

The transcript discusses handling null references in C# software development, focusing on techniques like the null-conditional operator (?) and null-coalescing operator (??) to prevent null reference exceptions. The speaker demonstrates various code scenarios showing how these operators can simplify null checking and provide default values when objects or properties are null. The key practical takeaway is that developers can use these C# language features to write more robust code with fewer explicit null checks, reducing the likelihood of runtime exceptions and making code more concise and readable.

View original episode ↗