Never.cs 532 B

1234567891011121314151617181920
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. #if !NO_PERF
  3. using System;
  4. using System.Reactive.Disposables;
  5. namespace System.Reactive.Linq.Observαble
  6. {
  7. class Never<TResult> : IObservable<TResult>
  8. {
  9. public IDisposable Subscribe(IObserver<TResult> observer)
  10. {
  11. if (observer == null)
  12. throw new ArgumentNullException("observer");
  13. return Disposable.Empty;
  14. }
  15. }
  16. }
  17. #endif