What is Nullable Type in c#

Answer Posted / mistry

Nullable types are instances of the System.Nullable struct.
A nullable type can represent the normal range of values
for its underlying value type, plus an additional null
value. For example, a Nullable<Int32>, pronounced "Nullable
of Int32," can be assigned any value from -2147483648 to
2147483647, or it can be assigned the null value. A
Nullable<bool> can be assigned the values true or false, or
null. The ability to assign null to numeric and Boolean
types is particularly useful when dealing with databases
and other data types containing elements that may not be
assigned a value.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How garbage collection deals with circular references.

471


What I can do with c#?

510


What is the difference between finalize() and dispose()?

494


What is null propagation c#?

504


What is the advantage of dependency injection?

506






What are the boolean data types in c#?

510


Describe two uses of the “using” statement during the operation of c#?

547


Give some examples for built in datatypes in c#?

552


What is anonymous class in c#?

517


What is a method signature in c#?

510


Explain about accessibility modifier 'protected internal'?

541


What are the differences between a class and a struct?

476


What is cookies in c# asp net?

509


Why do we use methods in c#?

475


Can a method be sealed in c#?

492