nullreferenceexception c#

C#
string foo = null;
foo.ToUpper();
Source

Also in C#: