protected virtual void Dispose(bool disposing) { if (Handle != default) { CFBase.CFRelease(Handle); Handle = default; } }
internal IOPowerSourcesInfo(CFTypeRef handle, bool owns) { if (handle == default) { throw new ArgumentNullException(nameof(handle)); } Handle = handle; if (!owns) { CFBase.CFRetain(handle); } }