You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: Always consume the value returned by methods marked with PreserveSigAttribute
Description:
PreserveSigAttribute indicates that a method will return an HRESULT, rather than throwing an exception. Therefore, it is important to consume the HRESULT returned by the method, so that errors can be detected. Generally, this is done by calling Marshal.ThrowExceptionForHR.
Dependency: None
Notes:
The text was updated successfully, but these errors were encountered:
This rule in in the unfactored location. It needs to be moved to the InteropServices.Analyzers location. As part of this, implement some unit tests for this rule (#343)
@mavasani Is it still worth to implement this rule as such? It feels like there is an important overlap with CA1806 (there is a special case for HRESULT).
Title: Always consume the value returned by methods marked with PreserveSigAttribute
Description:
PreserveSigAttribute indicates that a method will return an HRESULT, rather than throwing an exception. Therefore, it is important to consume the HRESULT returned by the method, so that errors can be detected. Generally, this is done by calling Marshal.ThrowExceptionForHR.
Dependency: None
Notes:
The text was updated successfully, but these errors were encountered: