What is difference between unsafe code and unmanaged code in C#?

前端 未结 5 2266
走了就别回头了
走了就别回头了 2021-02-12 23:14

What is difference between unsafe code and unmanaged code in C#?

5条回答
  •  遥遥无期
    2021-02-12 23:47

    Unsafe - Code that can be outside the verifiable subset of CIL

    Unmanaged - Code that is not managed by the runtime and is thus not visible to the GC (for example a native compiled x86 function would be unmanaged.)

    from: http://forums.devx.com/archive/index.php/t-15405.html

提交回复
热议问题