public static void DestroySingleton() { lock (LockObject) { _instance.Dispose(); _instance = null; } }
public static I2CBus GetInstance() { lock (LockObject) { if (_instance == null) { _instance = new I2CBus(); } return(_instance); } }