private static void OnNotifyTextChanged(NotifyUpdatedEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref NotifyTextChanged, null, null); if (threadSafeHandler != null) { threadSafeHandler(null, e); } NotifyTextChangedEvent.Raise(e); }
private static void OnNotifyTextChanged(NotifyUpdatedEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref NotifyTextChanged, null, null); if (threadSafeHandler != null) threadSafeHandler(null, e); NotifyTextChangedEvent.Raise(e); }