re: Dealing with Nothing in C# - The Null Object Pattern VIEW POST

FULL DISCUSSION
 

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

code of conduct - report abuse