Goodbye, NullReferenceException: Separate State in Separate Objects

from blog Just Some Code, | ↗ original
So far in this series about NullReferenceException, we have used nullable operators and C# 8.0 Nullable References to avoid null and learned about the Option type as an alternative to null. Let’s see how to design our classes to avoid null when representing optional values. Instead of writing a large class with methods that expect some nullable...