"Atul Sureka" <at*********@persistent.co.in> a écrit dans le message de
news:
e0**************@TK2MSFTNGP12.phx.gbl...
| I want to free the object memory in C# - like we do using 'delete' keyword
| in C++.
| Lets say I have an object of some class and I want to explicitly free the
| memory.
| C# do not have any free or delete keyword to do so.
C# does not have deterministic finalization, simply null the reference and
the GC will do the work for you.
| Also I don't want to wait for the GC to be called.
Forcing the GC can be a lot less efficient than letting it do its own thing.
| Is assigning any object to null means freeing the memory ??
As I said, it signals the GC that the object is available for collection.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer