Nulls Explained
In this page we'll Demo and explain:
null
is a special value that indicates that there is no valuenull
is different than '0' or '"";- if a member value was not set, it's value is
null
- Explain that when you get the "Object reference not set to an instance of an object" exception, it means that you are trying to use a field that has a
null
value - it's value was not set. - Not all types can have a null value, for example
int
,bool
, andDateTime
can not havea a null value because they arestructs
string s = null;
Introducing Nulls
More on Nulls
---Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com