public static void Destroy() { foreach (object entry in _deviceFileIdRegistry.Values) { NvDeviceFile deviceFile = (NvDeviceFile)entry; deviceFile.Close(); } _deviceFileIdRegistry.Clear(); }
public virtual void DestroyAtExit() { foreach (object domainObject in _domainObjects.Values) { if (domainObject != this && domainObject is IDisposable disposableObj) { disposableObj.Dispose(); } } _domainObjects.Clear(); }
public static void Destroy() { NvHostChannelDeviceFile.Destroy(); foreach (object entry in DeviceFileIdRegistry.Values) { NvDeviceFile deviceFile = (NvDeviceFile)entry; deviceFile.Close(); } DeviceFileIdRegistry.Clear(); }
public ICollection <object> Clear() { return(Handles.Clear()); }