NullReferenceException Class
The exception that is thrown when there is an attempt to dereference a null object reference.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[SerializableAttribute]
public class NullReferenceException : SystemException
Remarks
Note that applications throw an ArgumentNullException exception rather than a NullReferenceException exception.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.