Skip to content

Instantly share code, notes, and snippets.

SelaO / Decorator.cs
Last active February 5, 2018 23:28
C# Decorator pattern implementation
// C# decorator example where every concrete decorator needs to implement doConcrete() instead of remembering to call base.doit()
// based on this example:
using System;
namespace Project1
class Program
public static void Main(string[] args)