0
What is the purpose of Nullable types in C#? Can we just assign a value of 0 instead of using null?
I cannot seem to grasp the concept of Nullable type. Can someone enlighten me?
1 Antwort
+ 1
0 is a value, null means not set.
If you bring 0 kids to a party, it means that you will come on your own or with a partner.
If you bring null kids to a party, it means that you have not defined yet if you bring your kids or not.