AnonymousObserver<T> Class
Class to create an IObserver(T) instance from delegate-based implementations of the On* methods.
Definition
Namespace: Avalonia.Reactive
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public class AnonymousObserver<T> : IObserver<T>
Public Class AnonymousObserver(Of T)
Implements IObserver(Of T)
type AnonymousObserver<'T> =
class
interface IObserver<'T>
end
Inheritance | Object → AnonymousObserver(T) |
Implements | IObserver(T) |
Type Parameters
- The type of the elements in the sequence.
Constructors
AnonymousObserver(T)(Action(T)) | Initializes a new instance of the AnonymousObserver(T) class |
AnonymousObserver(T)(TaskCompletionSource(T)) | Initializes a new instance of the AnonymousObserver(T) class |
AnonymousObserver(T)(Action(T), Action) | Initializes a new instance of the AnonymousObserver(T) class |
AnonymousObserver(T)(Action(T), Action(Exception)) | Initializes a new instance of the AnonymousObserver(T) class |
AnonymousObserver(T)(Action(T), Action(Exception), Action) | Initializes a new instance of the AnonymousObserver(T) class |
Methods
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
OnCompleted() | |
OnError(Exception) | |
OnNext(T) | |
ToString() | Returns a string that represents the current object. (Inherited from Object) |