TryParse WTF
I came across this piece of code today and, while not WTF worthy, it still summoned a sigh of sadness from me, and I thought I would share. Apparantly, the author's understanding of DateTime.TryParse() was not correct. Enjoy. Happy Friday.
if (DateTime.TryParse(m_dateChooser.Text, out dt) == true)
{
return dt;
}
else
{
return DateTime.MinValue;
}