Struct WithSender<TEvent>
- Namespace
- LfrlAnvil.Reactive.Composites
- Assembly
- LfrlAnvil.Reactive.Core.dll
Represents an event with a sender.
public readonly struct WithSender<TEvent>
Type Parameters
TEvent
Event type.
- Inherited Members
Constructors
WithSender(object?, TEvent)
Creates a new WithSender<TEvent> instance.
public WithSender(object? sender, TEvent @event)
Parameters
sender
objectEvent's sender.
event
TEventUnderlying event.
Properties
Event
Underlying event.
public TEvent Event { get; }
Property Value
- TEvent
Sender
Event's sender.
public object? Sender { get; }
Property Value
Methods
ToString()
Returns a string representation of this WithSender<TEvent> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.