Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   null in C# (http://www.go4expert.com/forums/null-c-sharp-t7476/)

sashimi 23Nov2007 14:33

null in C#
 
I wonder what is 'null' in C#. why it is not equal with any '0' ((i means 0x00, '\0', etc.)) even it's value is '0' ? :confused:

shabbir 23Nov2007 17:38

Re: null in C#
 
null is null but every object has its own null like System.Empty and Color.Empty.

narayan 9Apr2008 17:36

Re: null in C#
 
Null is referred to as nothing and it can be assigned to varchar or string variable and also to int

where as 0 is the value assigned to int


All times are GMT +5.5. The time now is 14:16.