From http://www.dotnetperls.com/nullreferenceexception[^]:The program defines the Main entry point. The string reference variable is assigned to the null literal. Next, the Length property is accessed on the string reference. The program compiles correctly, but will always throw an execution. Note: You cannot access an instance property like Length on a null reference. An exception will always occur.
ent
Repeater1
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)