Posts Tagged ‘Bad Code’

April 13th, 2009

I see at least 4 things wrong with this code

I saw this code over on Ayende’s website. I see at least 4 things wrong with this code, which was found here.

public object DeepCopy (object value)
{
    try {
        return value;
    } catch (Exception ex) {
        throw ex;
    }
}

See if you can find them all.

Tags:

Posted in C#, News, Personal, Programming | kick it on DotNetKicks.com | Bookmark | View blog reactions | 1 Comment »