Debian Codegraph @

external/rx/Rx/NET/Source/System.Reactive.Interfaces/Reactive/IEventPattern.cs

raw
1 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3 namespace System.Reactive
4 {
5 /// <summary>
6 /// Represents a .NET event invocation consisting of the strongly typed object that raised the event and the data that was generated by the event.
7 /// </summary>
8 /// <typeparam name="TSender">
9 /// The type of the sender that raised the event.
10 /// 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.
11 /// </typeparam>
12 /// <typeparam name="TEventArgs">
13 /// The type of the event data generated by the event.
14 /// 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.
15 /// </typeparam>
16 public interface IEventPattern<
17 #if !NO_VARIANCE
18 out TSender, out TEventArgs
19 #else
20 TSender, TEventArgs
21 #endif
22 >
23 #if !NO_EVENTARGS_CONSTRAINT
24 where TEventArgs : EventArgs
25 #endif
26 {
27 /// <summary>
28 /// Gets the sender object that raised the event.
29 /// </summary>
30 TSender Sender { get; }
31
32 /// <summary>
33 /// Gets the event data that was generated by the event.
34 /// </summary>
35 TEventArgs EventArgs { get; }
36 }
37 }