Debian Codegraph @

external/rx/Rx/NET/Source/System.Reactive.Interfaces/IObservable.cs

raw
1 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3 #if NO_RXINTERFACES
4 namespace System
5 {
6 /// <summary>
7 /// Represents a push-style collection.
8 /// </summary>
9 #if !NO_VARIANCE
10 public interface IObservable<out T>
11 #else
12 public interface IObservable<T>
13 #endif
14 {
15 /// <summary>
16 /// Subscribes an observer to the observable sequence.
17 /// </summary>
18 IDisposable Subscribe(IObserver<T> observer);
19 }
20 }
21 #elif !WINDOWSPHONE7 // TypeForwardedTo is not presen on windows phone 7 so we can't really target
22 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IObservable<>))]
23 #endif
24