Design Principia
  • Home
  • Projects

design

A collection of 2 posts

C#

.NET IDisposable implementation

The other day I got a code review comment saying that I should implement the full blown disposable pattern for IDisposable including the protected virtual void Dispose(bool disposing) method. For a long

  • Andre Esteve
    Andre Esteve
3 min read
C#

The interface not supported fallacy

Today I was reviewing a colleague's code and I saw a pattern similar to the one below: interface IWorker { void doWork(); void setOfflineTarget(string target); } class OnlineWorker : IWorker { void doWork() { // do some work

  • Andre Esteve
    Andre Esteve
1 min read
Design Principia © 2023
Latest Posts Ghost