I'm currently working with a library and noticed something weird when using functions I already made(where I must do casting).
The library had a function defined like
public DateTime? GetDate(){..}
What is the point of this? Why not just make it a regular DateTime
and return null
as normal if there is some error getting the date? Am I missing something significant about Nullable types?