<PackageReference Include="System.Reactive" Version="5.0.0-preview.16" />

EventPattern<TSender, TEventArgs>

public class EventPattern<TSender, TEventArgs> : IEquatable<EventPattern<TSender, TEventArgs>>, IEventPattern<TSender, TEventArgs>
Represents a .NET event invocation consisting of the strongly typed object that raised the event and the data that was generated by the event.
public TEventArgs EventArgs { get; }

Gets the event data that was generated by the event.

public TSender Sender { get; }

Gets the sender object that raised the event.

public EventPattern(TSender sender, TEventArgs e)

Creates a new data representation instance of a .NET event invocation with the given sender and event data.

public static bool op_Equality(EventPattern<TSender, TEventArgs> first, EventPattern<TSender, TEventArgs> second)

Determines whether two specified EventPattern<T, U> objects represent the same event.

public static bool op_Inequality(EventPattern<TSender, TEventArgs> first, EventPattern<TSender, TEventArgs> second)

Determines whether two specified EventPattern<T, U> objects represent a different event.

public bool Equals(EventPattern<TSender, TEventArgs> other)

Determines whether the current EventPattern<T, U> object represents the same event as a specified EventPattern<T, U> object.