The cost of finalizers

added by DotNetKicks
2/1/2018 2:47:37 PM

2 Kicks, 280 Views

I started to write up what I figured out about finalizer in .NET, but this post does a great job of explaining everything. The issue here is that we retain a reference to the byte array after the dispose. Because the object is finalizable, the GC isn't going to be able to remove it on the spot.


0 comments