Skip to content

Instantly share code, notes, and snippets.

@SelaO
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: https://sourcemaking.com/design_patterns/decorator/java/1
using System;
namespace Project1
{
class Program
{
public static void Main(string[] args)