The code which runs directly under the control of code manager in CLR is called managed code. So the Garbage collector will take care of memory deallocation,providing security etc.
Then what about the unmanaged code like if pointers are used using the keyword Unsafe within the code. How the memory is deallocated for the same, because all the unmanaged code is executed under the control of operating system.
[Edit]Code formatting removed[/Edit]
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)