Documentation on Marshal.GetLastWin32Error
should be updated.
#1123
Labels
area-System.Runtime.InteropServices
Pri3
Indicates issues/PRs that are low priority
untriaged
New issue has not been triaged by the area owner
@tannergooding commented on Wed Jun 28 2017
The documentation currently makes no mention that this method will return
errno
on Unix/Mac (or the conditions, if any, under which it will returnerrno
on Windows).@tannergooding commented on Wed Jun 28 2017
As an aside,
GetLastWin32Error
is really a terrible name for cross-platform use. Maybe adding a new APIGetLastError
would be better...@mellinoe commented on Wed Jun 28 2017
Many of the function names in
Marshal
are Windows-specific. There was some effort to introduce aPInvokeMarshal
class which had better, platform-agnostic names, but I think we decided it wasn't worth it.@tannergooding commented on Thu Jun 29 2017
Fair enough.
At the very least, documenting interop/marshalling functions with the behavior they take on non-Windows would be very beneficial.
The text was updated successfully, but these errors were encountered: