protected virtual void Dispose(bool disposing) { if (disposing) { // disposing managed resouces } if (this.busHandle != 0) { I2CNativeLib.Close(this.busHandle); this.busHandle = 0; } }