public override void Dispose() { if (m_deviceIdentification != null) m_deviceIdentification.InternalDispose(); m_deviceIdentification = null; base.Dispose(); }
internal Device(Context context, IntPtr nodeHandle, bool addRef) : base(context, nodeHandle, addRef) { if (IsCapabilitySupported(Capabilities.DeviceIdentification)) m_deviceIdentification = new DeviceIdentificationCapability(this); else m_deviceIdentification = null; }
internal Device(Context context, IntPtr nodeHandle, bool addRef) : base(context, nodeHandle, addRef) { if (IsCapabilitySupported(Capabilities.DeviceIdentification)) { m_deviceIdentification = new DeviceIdentificationCapability(this); } else { m_deviceIdentification = null; } }