Null, dbnull. Value convert. dbnull, "" string. Empty, convert. isdbnull ()

Source: Internet
Author: User
1. null:
Null reference. It does not point to any object. Int I = NULL is not allowed.

2. dbnull. Value, convert. dbnull:
For datarow, row ["mycol"] will never return NULL, but only the value of a specific field or dbnull. value. Row ["mycol"]. tostring () is either null or the value of a specific field.
Dbnull only has a unique instance, dbnull. Value, used to determine whether the field in the database is null. Convert. dbnull works the same way as this.

3. "", String. Empty:
Same. Empty string.

4. Convert. isdbnull:
If the object in the parameter is dbnull, true or false is returned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.