[Mono-dev] [PATCH] Basic support for Marshal.GetHRForException
Kornél Pál
kornelpal at hotmail.com
Thu Jan 5 07:55:46 EST 2006
Hi,
Exception.HResult can be used to identify exceptions (for example
IOException). Unfortunately this is a protected property and is only exposed
by ExternalException.ErrorCode.
Marshal.GetHRForException should return this value in addition to calling
SetErrorInfo (COM support function). We have no COM interop support yet, so
I only implemented it as returning Exception.HResult.
Please review and approve the patch.
Kornél
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BasicGetHRForException.diff
Type: application/octet-stream
Size: 912 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060105/2e183791/attachment.obj
More information about the Mono-devel-list
mailing list