What is difference between managed code and unmanaged code in terms of the .NET framework?
Generally it will refer to memory management.
the unsafe keyword will get you there (unmanaged): http://msdn.microsoft.com/en-us/library/aa288474%28VS.71%29.aspx
unsafe
As will calling some external functions (extern keyword).
extern