Using C# Pointers

后端 未结 3 750
死守一世寂寞
死守一世寂寞 2021-01-11 17:24

How does c# makes use of pointers? If C# is a managed language and the garbage collector does a good job at preventing memory leaks and freeing up memory properly, then what

3条回答
  •  感动是毒
    2021-01-11 18:04

    When using pointers in C# (inside unsafe code blocks), the memory is not managed by the Framework. You are responsible for managing your own memory and cleaning up after yourself.

    ...therefore, I would consider if fairly "unsafe".

提交回复
热议问题