a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
1.2 KiB
C#
24 lines
1.2 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
namespace System.Reactive.Subjects
|
|
{
|
|
/// <summary>
|
|
/// Represents an object that is both an observable sequence as well as an observer.
|
|
/// </summary>
|
|
/// <typeparam name="TSource">
|
|
/// The type of the elements received by the subject.
|
|
/// This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
|
|
/// </typeparam>
|
|
/// <typeparam name="TResult">
|
|
/// The type of the elements produced by the subject.
|
|
/// This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
|
|
/// </typeparam>
|
|
#if !NO_VARIANCE
|
|
public interface ISubject<in TSource, out TResult> : IObserver<TSource>, IObservable<TResult>
|
|
#else
|
|
public interface ISubject<TSource, TResult> : IObserver<TSource>, IObservable<TResult>
|
|
#endif
|
|
{
|
|
}
|
|
}
|