August 2003
Intermediate to advanced
928 pages
32h 1m
English
NullReferenceException
This exception is thrown when you try to dereference a null pointer (for example, accessing an instance field on an object reference that currently points to no instance).
public class NullReferenceException : SystemException { // Public Constructors public NullReferenceException( ); public NullReferenceException(stringmessage); public NullReferenceException(stringmessage, ExceptioninnerException); // Protected Constructors protected NullReferenceException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
NullReferenceException