Contrary to Betteridge’s Law of Tabloid Headlines, the answer is “yes,” but context is important. I get this question so often that I thought it was time to get some stats on it.
Evil Monkeypatching in C# with Rosyln Source Generators
I came across this as I was trying to find a way to add a shim onto a sealed class from the Microsoft BCL. The goal was to provide a package that allowed people using that class to get a wrapper very easy without having to change their code.