Main Site Documentation

Extension - Exception extension to get HRESULT name


#1

[title]Exception extension to get HRESULT name[/title]
http://code.tinyclr.com/project/279/exception-extension-to-get-hresult-name/
[line]
This extension returns name of the HRESULT code as it is defined inside MicroFramework. This class helps when you need custom exception logging or need more information about an exception.

This code uses reflection to get value of a protected field.

Edit: Update for forum entry.