As of .NET 4.5, the getter for Exception.HResult
is now public
, but it used to be protected
.
From MSDN:
Starting with the .NET Framework 4.5, the HResult property's setter is protected, whereas its getter is public. In previous versions of the .NET Framework, both getter and setter are protected.
Do we know why this change was made?