Safehandle in C#

前端 未结 3 660
天涯浪人
天涯浪人 2021-01-11 09:52

What is SafeHandle? how does it differ from IntPtr? When should I use one? What are its advantages?

3条回答
  •  逝去的感伤
    2021-01-11 10:19

    Another way of looking at it: with SafeHandle, you should almost never need to write another finalizer.

提交回复
热议问题