Decorator Design Pattern - Not Possible
- by Lennie
Hi, This is more a design question... You can't do a decorate design pattern if:
1) The object is marked "sealed" meaning you can't extend from it.
2) or you want to override a method but its not virtual.
What can you do then? Taken that you can't change the class source code if you don't have the source code (like a 3rd party library).