Skip to content

Avoiding null! in C#

Photo of Jeff Ammons
Hosted By
Jeff A. and 4 others
Avoiding null! in C#

Details

Null references are a problem that can show up anywhere. As developers, we have to litter out code with null checks. Thankfully C# has a feature to help with that, Nullable Reference Types (NRTs). They utilize a mix of syntax and special C# Attributes to enable null checking at compile time. It's not a perfect system, but it's WAY better than not using NRTs.

In this session we'll review (and demo!) the different ways Nullable Reference Types help us when something may be null, by talking about:
- The helpful NRT C# syntax and attributes
- How NRT code is different for object deserialization
- Cases where NRTs aren't as helpful as we'd like them to be

Photo of ONETUG - Orlando .NET User Group group
ONETUG - Orlando .NET User Group
See more events
Exchange Building - Theatre Room
122 W. Pine Street · Orlando, FL
Google map of the user's next upcoming event's location
FREE