Last Updated: February 25, 2016
·
313
· marcofranssen

Most awesome code error I have seen in my projects so far

Before:

public virtual void Cleanup()
{
     throw new NotImplementedException("Override Cleanup()");
}

public virtual int Total { get { throw new NotImplementedException("Override Total"); } }

After:

public abstract void Cleanup();
public abstract int Total { get; }

Imagine this code is produced by a senior guy :D