What is null able data type in c# [Resolved]

Posted by Jitendrasoft09 under C# on 6/26/2013 | Points: 10 | Views : 1875 | Status : [Member] [MVP] | Replies : 4
Hi All,
I want to understand What is null able data type in c#, let me know if anybody knows.

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: Niladri.Biswas on: 6/26/2013 [Member] Platinum | Points: 50

Up
0
Down

Resolved
A type is said to be nullable if it can be assigned a value or can be assigned null, which means the type has no value whatsoever. Consequently, a nullable type can express a value, or that no value exists. For example, a reference type such as String is nullable, whereas a value type such as Int32 is not. A value type cannot be nullable because it has enough capacity to express only the values appropriate for that type; it does not have the additional capacity required to express a value of null.

The Nullable structure supports using only a value type as a nullable type because reference types are nullable by design.

The Nullable class provides complementary support for the Nullable structure. The Nullable class supports obtaining the underlying type of a nullable type, and comparison and equality operations on pairs of nullable types whose underlying value type does not support generic comparison and equality operations.

http://msdn.microsoft.com/en-us/library/vstudio/1t3y8s4s.aspx

http://www.codeproject.com/Articles/275471/Nullable-Types-in-Csharp-Net

http://www.c-sharpcorner.com/UploadFile/PashuSX/NullableTypes04282006114548AM/NullableTypes.aspx




Best Regards,
Niladri Biswas

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 6/27/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Nice Explanation, Thanks Niladri....

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: lakhansin-22735 on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
Yes, that is more than enough about Nullable datatype.

Thanks

Lakhan Singh
Tech Lead
BeyondKey System Pvt. Ltd.
Indore, M.P.
India

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
Hi

Refer this Link

http://www.tutorialspoint.com/csharp/csharp_nullables.htm


Thanks,
Bagesh Kumar singh

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response