How to work with nullable types in C#