generate code for decorator pattern for csharp