#if NET20 || NET30 || NET35 || !NET_4_6
namespace System
{
/// Provides a mechanism for receiving push-based notifications.
/// The object that provides notification information.
#if NETCF
public interface IObserver
#else
public interface IObserver
#endif
{
/// Notifies the observer that the provider has finished sending push-based notifications.
void OnCompleted();
/// Notifies the observer that the provider has experienced an error condition.
/// An object that provides additional information about the error.
void OnError(Exception error);
/// Provides the observer with new data.
/// The current notification information.
void OnNext(T value);
}
}
#endif