Interface IExecuteWithObject
This interface is meant for the WeakAction<T> class and can be useful if you store multiple WeakAction{T} instances but don't know in advance what type T represents.
Namespace: ISynergy.Framework.Core.Abstractions.Events
Assembly: ISynergy.Framework.Core.dll
Syntax
public interface IExecuteWithObject
Properties
View SourceTarget
The target of the WeakAction.
Declaration
object Target { get; }
Property Value
Type | Description |
---|---|
System.Object | The target. |
Methods
View SourceExecuteWithObject(Object)
Executes an action.
Declaration
void ExecuteWithObject(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | A parameter passed as an object, to be casted to the appropriate type. |
MarkForDeletion()
Deletes all references, which notifies the cleanup method that this entry must be deleted.
Declaration
void MarkForDeletion()