safefilehandle

What is SafeFileHandle in c# and when should i use?

£可爱£侵袭症+ 提交于 2020-01-05 08:25:10
问题 While I am still learning System.IO, in File Stream class 's constructors, I found that there are overloaded constructors with the type named SafeFileHandle , I tried to search on the internet and the MSDN Documention, but I can't understand anything, and I found even stranger words, like IntPtr , can any one explain it to me? public FileStream (Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync); can someone explain it, or are there