Interface ISubject<TSource, TResult>
Represents an object that is both an observable sequence as well as an observer.
Inherited Members
Namespace: System.Reactive.Subjects
Assembly: System.Reactive.Interfaces.dll
Syntax
public interface ISubject<in TSource, out TResult> : IObserver<TSource>, IObservable<TResult>
Type Parameters
Name | Description |
---|---|
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. |
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. |