网上演练贵港万达广场(人员密集)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
930 B

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