Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii ,

what is the difference between the folliwing

C#
if(result==null)
{

}


C#
if(result==dbnull.value)
{

}
Posted
Updated 8-Apr-14 7:24am
v2
Comments
[no name] 8-Apr-14 13:00pm    
http://stackoverflow.com/questions/4958379/what-is-the-difference-between-null-and-system-dbnull-value

1 solution

The keyword null represents an invalid reference. The class System.DbNull represents a nonexistent value in a database field.
 
Share this answer
 
v3
Comments
Aarti Meswania 8-Apr-14 13:05pm    
5+! :)
Abhinav S 8-Apr-14 13:07pm    
Thank you.
Torakami 8-Apr-14 13:34pm    
what do you mean by nonexisistent value in a database field .. menas it again checks for null only ryt ??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900