Swapnil said:
When to use Managed code & when to use unmanaged code in the application?
please give one example.
Examples for unmanaged code could be when you need to interface with
other unmanaged libraries a lot and interop would either add overhead or
the possibility of a bug in the translation of the header files.
Also, if you need to pull the last ounce of performance out of heavy
loops, like matrix multiplication code, where you need to hand-optimize
the code for a particular processor, then perhaps unmanaged code would
be better than managed as well.
Other than that I'd say use managed code.