Marshal.GetExceptionCode() has been obsoleted, and the message does not suggest a way forward.
at the moment I use this in the following opensource project:
https://github.com/dbones-labs/auditable/blob/master/src/Auditable/AuditableContext.cs#L143
the idea is, if the client code/app within a using block throws an exception it should not write a log.
However, the project code only has a using statement to figure out if it should react or not.
what is the alternative to this? (without changeing the API for the calling code)
example use of the API https://dbones-labs.github.io/auditable/quick-examples/aspnet-example.html#3-add-some-auditable-logs