how are nullable types implemented under the hood in .net?
- by CrazyJugglerDrummer
In our own Jon Skeet's C# in depth, he discusses the 3 ways to simulate a 'null' for value types:
Magic value (e.g. earliest possible DateTime is taken to be 'null')
Reference type wrapper
boolean flag
It is mentioned that nullable types use the third method. How exactly do nullable types work under the hood?