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
Written by Marco Franssen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C#
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#