Closed niemyjski closed 2 years ago
@elachlan Any chance you could take a quick look into this (If not, that is fine but would be nice to get into the next release)? I think we just need to throw an OutOfMemory exception in a test fact and then update the reflection flags here: https://github.com/exceptionless/Exceptionless.Net/blob/master/src/Exceptionless/Extensions/ToErrorModelExtensions.cs#L57
Looking now.
HResult
doesn't seem to be picked up properly via reflection in the ToError extensions. This could be due to it being a public property and the reflection is checking that it's private: https://docs.microsoft.com/en-us/dotnet/api/system.exception.hresult?msclkid=5283e541cf9b11ec938e45f7252349bc&view=net-6.0I'm thinking that since the library now targets .NET 4.5 and above, we can change our implementation to just check public.