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