Open loic-joly-sonarsource opened 5 years ago
When using HandleRef
, it is a strong indicator of usage interop resources that should be disposed.
This can also be the case for IntPtr
and UIntPtr
, but it might generate some FP based on how users are using it.
The RSPEC mentions native resources, such as
IntPtr
,UIntPtr
, andHandleRef
, but the implementation does not care about them (either before or after #2008).Should the rule be extended to them (it's not always clear if native resources systematically need to be
Disposed
...)?