/// <summary>Raises the <see cref="PinRequested" /> event.</summary> /// <param name="sender">The object that raised the event.</param> protected virtual void OnPinRequested(Bluetooth sender) { if (_onPinRequested == null) { _onPinRequested = OnPinRequested; } PinRequested?.Invoke(sender); }
/// <summary> /// Raises the <see cref="PinRequested"/> event. /// </summary> /// <param name="sender">The object that raised the event.</param> protected virtual void OnPinRequested(Bluetooth sender) { if (onPinRequested == null) { onPinRequested = new PinRequestedHandler(OnPinRequested); } if (Program.CheckAndInvoke(PinRequested, onPinRequested, sender)) { PinRequested(sender); } }
/// <summary> /// Raises the <see cref="PinRequested"/> event. /// </summary> /// <param name="sender">The object that raised the event.</param> protected virtual void OnPinRequested(Bluetooth sender) { if (onPinRequested == null) onPinRequested = new PinRequestedHandler(OnPinRequested); if (Program.CheckAndInvoke(PinRequested, onPinRequested, sender)) { PinRequested(sender); } }