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:

Nullable<byte> val;
This code snippet means the byte value data type can be assigned to any value ranges from 0 to 255.

Nullable<byte> val = null;
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:
byte? val = null;


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.