Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
UniRx.EventPattern< TSender, TEventArgs > Class Template Reference

Represents a .NET event invocation consisting of the weakly typed object that raised the event and the data that was generated by the event. More...

Inheritance diagram for UniRx.EventPattern< TSender, TEventArgs >:
UniRx.EventPattern< object, TEventArgs > UniRx.IEventPattern< TSender, TEventArgs >

Public Member Functions

 EventPattern (object sender, TEventArgs e)
 Creates a new data representation instance of a .NET event invocation with the given sender and event data. More...
 
 EventPattern (TSender sender, TEventArgs e)
 Creates a new data representation instance of a .NET event invocation with the given sender and event data. More...
 
bool Equals (EventPattern< TSender, TEventArgs > other)
 Determines whether the current EventPattern<TSender, TEventArgs> object represents the same event as a specified EventPattern<TSender, TEventArgs> object. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current EventPattern<TSender, TEventArgs>. More...
 
override int GetHashCode ()
 Returns the hash code for the current EventPattern<TSender, TEventArgs> instance. More...
 
- Public Member Functions inherited from UniRx.EventPattern< object, TEventArgs >
 EventPattern (object sender, TEventArgs e)
 Creates a new data representation instance of a .NET event invocation with the given sender and event data. More...
 
 EventPattern (TSender sender, TEventArgs e)
 Creates a new data representation instance of a .NET event invocation with the given sender and event data. More...
 
bool Equals (EventPattern< TSender, TEventArgs > other)
 Determines whether the current EventPattern<TSender, TEventArgs> object represents the same event as a specified EventPattern<TSender, TEventArgs> object. More...
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to the current EventPattern<TSender, TEventArgs>. More...
 
override int GetHashCode ()
 Returns the hash code for the current EventPattern<TSender, TEventArgs> instance. More...
 

Static Public Member Functions

static bool operator== (EventPattern< TSender, TEventArgs > first, EventPattern< TSender, TEventArgs > second)
 Determines whether two specified EventPattern<TSender, TEventArgs> objects represent the same event. More...
 
static bool operator!= (EventPattern< TSender, TEventArgs > first, EventPattern< TSender, TEventArgs > second)
 Determines whether two specified EventPattern<TSender, TEventArgs> objects represent a different event. More...
 
- Static Public Member Functions inherited from UniRx.EventPattern< object, TEventArgs >
static bool operator== (EventPattern< TSender, TEventArgs > first, EventPattern< TSender, TEventArgs > second)
 Determines whether two specified EventPattern<TSender, TEventArgs> objects represent the same event. More...
 
static bool operator!= (EventPattern< TSender, TEventArgs > first, EventPattern< TSender, TEventArgs > second)
 Determines whether two specified EventPattern<TSender, TEventArgs> objects represent a different event. More...
 

Properties

TSender Sender [get]
 Gets the sender object that raised the event. More...
 
TEventArgs EventArgs [get]
 Gets the event data that was generated by the event. More...
 
- Properties inherited from UniRx.EventPattern< object, TEventArgs >
TSender Sender [get]
 Gets the sender object that raised the event.
 
TEventArgs EventArgs [get]
 Gets the event data that was generated by the event.
 
- Properties inherited from UniRx.IEventPattern< TSender, TEventArgs >
TSender Sender [get]
 Gets the sender object that raised the event. More...
 
TEventArgs EventArgs [get]
 Gets the event data that was generated by the event. More...
 

Detailed Description

Represents a .NET event invocation consisting of the weakly typed object that raised the event and the data that was generated by the event.

Represents a .NET event invocation consisting of the strongly typed object that raised the event and the data that was generated by the event.

Template Parameters
TEventArgsThe type of the event data generated by the event.
Template Parameters
TSenderThe type of the sender that raised the event.
TEventArgsThe type of the event data generated by the event.

Constructor & Destructor Documentation

◆ EventPattern() [1/2]

UniRx.EventPattern< TSender, TEventArgs >.EventPattern ( object  sender,
TEventArgs  e 
)

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

Parameters
senderThe sender object that raised the event.
eThe event data that was generated by the event.

◆ EventPattern() [2/2]

UniRx.EventPattern< TSender, TEventArgs >.EventPattern ( TSender  sender,
TEventArgs  e 
)

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

Parameters
senderThe sender object that raised the event.
eThe event data that was generated by the event.

Member Function Documentation

◆ Equals() [1/2]

bool UniRx.EventPattern< TSender, TEventArgs >.Equals ( EventPattern< TSender, TEventArgs >  other)

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

Parameters
otherAn object to compare to the current EventPattern<TSender, TEventArgs> object.
Returns
true if both EventPattern<TSender, TEventArgs> objects represent the same event; otherwise, false.

◆ Equals() [2/2]

override bool UniRx.EventPattern< TSender, TEventArgs >.Equals ( object  obj)

Determines whether the specified System.Object is equal to the current EventPattern<TSender, TEventArgs>.

Parameters
objThe System.Object to compare with the current EventPattern<TSender, TEventArgs>.
Returns
true if the specified System.Object is equal to the current EventPattern<TSender, TEventArgs>; otherwise, false.

◆ GetHashCode()

override int UniRx.EventPattern< TSender, TEventArgs >.GetHashCode ( )

Returns the hash code for the current EventPattern<TSender, TEventArgs> instance.

Returns
A hash code for the current EventPattern<TSender, TEventArgs> instance.

◆ operator!=()

static bool UniRx.EventPattern< TSender, TEventArgs >.operator!= ( EventPattern< TSender, TEventArgs >  first,
EventPattern< TSender, TEventArgs >  second 
)
static

Determines whether two specified EventPattern<TSender, TEventArgs> objects represent a different event.

Parameters
firstThe first EventPattern<TSender, TEventArgs> to compare, or null.
secondThe second EventPattern<TSender, TEventArgs> to compare, or null.
Returns
true if both EventPattern<TSender, TEventArgs> objects don't represent the same event; otherwise, false.

◆ operator==()

static bool UniRx.EventPattern< TSender, TEventArgs >.operator== ( EventPattern< TSender, TEventArgs >  first,
EventPattern< TSender, TEventArgs >  second 
)
static

Determines whether two specified EventPattern<TSender, TEventArgs> objects represent the same event.

Parameters
firstThe first EventPattern<TSender, TEventArgs> to compare, or null.
secondThe second EventPattern<TSender, TEventArgs> to compare, or null.
Returns
true if both EventPattern<TSender, TEventArgs> objects represent the same event; otherwise, false.

Property Documentation

◆ EventArgs

TEventArgs UniRx.EventPattern< TSender, TEventArgs >.EventArgs
get

Gets the event data that was generated by the event.

Implements UniRx.IEventPattern< TSender, TEventArgs >.

◆ Sender

TSender UniRx.EventPattern< TSender, TEventArgs >.Sender
get

Gets the sender object that raised the event.

Implements UniRx.IEventPattern< TSender, TEventArgs >.


The documentation for this class was generated from the following file: