What is a nullable type?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is a nullable type?
Rating:
A nullable type is a value type that can represent all range of values of its underlying value type. In addition, a null value can also be assigned to the value type. For example:
This code snippet means the byte value data type can be assigned to any value ranges from 0 to 255.
This code snippet means the byte value data type can be assigned to a null value.
In C# language specification, the following is the shorthand notation for the nullable type:
Rating:
Was this information helpful?
Other articles
- What is meant by dispinterface?
- What is the IDisposable interface?
- How to run the Console application?
- How to add files to a Web Setup package?
- Skills required for Microsoft test 70-536.
