Skip to content

Instantly share code, notes, and snippets.

View OJ's full-sized avatar
🧗
Pining for the rocks

OJ Reeves OJ

🧗
Pining for the rocks
View GitHub Profile
@OJ
OJ / AwfulPileOfShit.cs
Created April 15, 2009 22:15
A large pile of shit that I recently discovered in an open source code base from CodePlex.
public void SendMessage()
{
lock(this)
{
//do some sanity checking
if(host == null || host.Trim().Length == 0)
{
throw new Exception("No host specified.");
}
if(from == null || from.Trim().Length == 0)