The resource, which is within your application domain is, managed code. The resources that are within domain are faster.
The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution. Any language that is written in .NET Framework is managed code. Managed code uses CLR which in turn looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on.
The code which runs directly by the Operating system is known as Unmanaged Code.