DEV Community

Discussion on: Dealing with Nothing in C# - The Null Object Pattern

Collapse
jhbertra profile image
Jamie Bertram • Edited on

Interesting pattern - for a more general purpose solution to the null-safety issue when no default can be defined, I'd recommend the Maybe / Option pattern, which is a universally equivalent (but type-safe) alternative to null references