How to check DBNull in C# ?

Priya
Priya
Member
62 Points
26 Posts

Hi,

Is any method for DBNull?

Views: 8147
Total Answered: 1
Total Marked As Answer: 1
Posted On: 13-Dec-2014 22:14

Share:   fb twitter linkedin
Answers
Nice One
Nice One
Member
110 Points
10 Posts
Marked as answer      

Hi, Priya

You can check with:

 bool DBNull.Value.Equals(object obj);

It will return true if obj is DBNull else false.

Posted On: 13-Dec-2014 22:21
banner

Blog

Active User (2)

 Log In to Chat