DEV Community

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

Collapse
 
n_develop profile image
Lars Richter

Nice post. I'm a huge fan of the "Null Object" and try to avoid any null in my code as good as possible. Of course, you have to consider null as possible inputs from external sources (network, database, user input), but inside of my own code, I use "Null Object" most of the time.