bool CheckDispose() { if (isDisposed) { if (dispatcher != null && (dispatcher.options & DispatcherOptions.SuppressDisposeExceptions) != 0) return false; throw new ObjectDisposedException (ToString ()); } return true; }