What is the default value of unsigned int in c#?
For ex: int, its 0, i want to know for unsigned int, will unsigned int support assigning null value to it?
Use this to figure it out:
default(uint); //0
To assign a null value to it you need to use a Nullable<uint>
or just uint?
. Now if you have a uint?
you can do the same thing to see it supports a null value.
default(uint?); //null
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With