What is meant by “managed” vs “unmanaged” resources in .NET?

前端 未结 5 607
余生分开走
余生分开走 2020-11-28 03:29

What is meant by the terms managed resource and unmanaged resource in .NET? How do they come into the picture?

5条回答
  •  爱一瞬间的悲伤
    2020-11-28 03:50

    Managed resources are those that are pure .NET code and managed by the runtime and are under its direct control.

    Unmanaged resources are those that are not. File handles, pinned memory, COM objects, database connections etc.

提交回复
热议问题