Should ConditionalWeakTable be used for non-compiler purposes?
I don’t see anything wrong with using ConditionalWeakTable. If you need ephemerons, you pretty much have no other choice. I don’t think future .NET versions will be a problem – even if only compilers would use this class, Microsoft still couldn’t change it without breaking compatibility with existing binaries. As for overhead – there certainly … Read more