Can I poison a class instance in C#
I am trying to add some Dispose cleanup in a large hierarchy where the default dispose method used to do nothing. When I do so, I get very rare and difficult to reproduce bugs that make me suspect that I have a use after dispose bug somewhere in the large codebase, that went latent for years, because the dispose methods that used to do nothing now do things. I am not sure even which class causes the bug.
Can I poison a class instance in C#
I am trying to add some Dispose cleanup in a large hierarchy where the default dispose method used to do nothing. When I do so, I get very rare and difficult to reproduce bugs that make me suspect that I have a use after dispose bug somewhere in the large codebase, that went latent for years, because the dispose methods that used to do nothing now do things. I am not sure even which class causes the bug.