Object Reference Not Set to an Instance of an Object
In this category I will post some "creative" solutions to problems. (Code changed to protect the inocents).
// The WTF way
int myInt = Int32.Parse(myDataTable.Rows.Count + "");
// The correct way
int myInt = myDataTable.Rows.Count;
Skin design by Mark Wagner, Adapted by David Vidmar
Copyright © Sglima