I am using a third party class library. This implements class A that implements IDisposable and an interface B that also implements IDisposable.
I have a class that needs to inherit from class A and implemnt interface B. If a do a Visual Studio code analysis it reports that I am not implementing IDisposable correctly and to remove IDisposable from the list of interfaces.
Given that I cannot change A or B and the fact they both need to handle IDisposable. Is there a recommended way of handling this or doing I just ignore this.
External library has:
public interface IModbusMaster : IDisposable
public abstract class ModbusDevice : IDisposable
My code uses:
public abstract class ModbusMaster : ModbusDevice, IModbusMaster
Thanks