Share via


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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

NullReferenceException Members
System Namespace