Class SmartEvent<TEventArgs>
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
It inherits IInvalidatable. The event with TEventArgs for EvasObject. EvasObject can elect the SmartEvent occurring inside them, to be reported back to their users via delegates. This way, you can extend EvasObject's own EvasObjectEvent. They are defined by an event string, which identifies them uniquely.
C#Copy[Obsolete("This has been deprecated in API12")] public class SmartEvent<TEventArgs> : IInvalidatable, IDisposable where TEventArgs : EventArgs
- Inheritance
-
objectSmartEvent<TEventArgs>
- Implements
-
System.IDisposable
Constructors
View Source
SmartEvent(EvasObject, string, SmartEventInfoParser)
Creates and initializes a new instance of the SmartEvent class.
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] public SmartEvent(EvasObject sender, string eventName, SmartEvent<TEventArgs>.SmartEventInfoParser parser)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | sender | The source of the event. |
| string | eventName | The event name. |
| SmartEvent<TEventArgs>.SmartEventInfoParser | parser | The event parameter. |
View Source
SmartEvent(EvasObject, string)
Creates and initializes a new instance of the SmartEvent class.
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] public SmartEvent(EvasObject sender, string eventName)
Parameters
| Type | Name | Description |
|---|---|---|
| EvasObject | sender | The source of the event. |
| string | eventName | The event name. |
Methods
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] public void Dispose()
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true if the managed resources should be disposed, otherwise false. |
Declaration
C#Copyprotected ~SmartEvent()
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] public void MakeInvalidate()
Events
Declaration
C#Copy[Obsolete("This has been deprecated in API12")] public event EventHandler<TEventArgs> On
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><TEventArgs> |
Implements
System.IDisposable