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 the Triple Data Encryption Algorithm (TDEA)?
- How to use the UTF8Encoding class to encode and decode a text?
- What is a cryptographer?
- What are the types of Breakingpoints?
- How to open a Web application?