Skip to content

Instantly share code, notes, and snippets.

introduction

in C# (before C# 8) every object could potentially be null
null values tell that there is no value (for whatever reason)
for example the job of a person can be null (if the person doesnt have a job)
nulls help in many edge cases of data management

however, in C#, there was no way to tell if a value is allowed to be null or not
take for example the following function