Dispose () is good enough.
I am not sure how .NET works. But calling an extra function or "set null" will degrade Java performance.
The CLR / Java VM (and should) is able to clear all dereferenced managed objects from the "roots" in the next garbage collection.
PS. Dispose () cleans up "unmanaged" resources to improve GC performance, as it does not wait for the Finallizer stream to complete.
source share