How to check DBNull in C# ?

Priya
Priya
Participant
936 Points
28 Posts

Hi,

Is any method for DBNull?

Views: 10749
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
280 Points
0 Posts
         

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
 Log In to Chat