Class HandleEvent
An event that can have callbacks removed via a passed handle.
Inheritance
System.Object
HandleEvent
Namespace: Eco.Core.Utils
Assembly: Eco.Core.dll
Syntax
public class HandleEvent : Object
Constructors
HandleEvent()
Declaration
public HandleEvent()
Methods
Add(Object, Action)
Declaration
public void Add(object handle, Action a)
Parameters
Type | Name | Description |
---|---|---|
System.Object | handle | |
System.Action | a |
AddUnique(Object, Action)
Declaration
public void AddUnique(object handle, Action a)
Parameters
Type | Name | Description |
---|---|---|
System.Object | handle | |
System.Action | a |
Invoke()
Declaration
public void Invoke()
Remove(Object)
Declaration
public void Remove(object handle)
Parameters
Type | Name | Description |
---|---|---|
System.Object | handle |