I was just reading this article,
“Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework”, by Jeffrey Richter, and I couldn't think of any real life sample for using ReRegisterForFinalize
or SuppressFinalize
.
Could anyone provide me with some examples?
A handful of places it gets used in the .NET framework, always a good place to look. Basic patterns are: