Generated by DocFX

Class WeakAction<T>

Class WeakAction. Implements the WeakAction Implements the IExecuteWithObject

Inheritance
System.Object
WeakAction
WeakAction<T>
Implements
IExecuteWithObject
Inherited Members
WeakAction.Method
WeakAction.ActionReference
WeakAction.LiveReference
WeakAction.Reference
WeakAction.IsStatic
WeakAction.Target
WeakAction.ActionTarget
Namespace: ISynergy.Framework.Core.Events
Assembly: ISynergy.Framework.Core.dll
Syntax
public class WeakAction<T> : WeakAction, IExecuteWithObject
Type Parameters
Name Description
T

Constructors

View Source

WeakAction(Action<T>, Boolean)

Initializes a new instance of the WeakAction<T> class.

Declaration
public WeakAction(Action<T> action, bool keepTargetAlive = false)
Parameters
Type Name Description
Action<T> action

The action.

System.Boolean keepTargetAlive

if set to true [keep target alive].

View Source

WeakAction(Object, Action<T>, Boolean)

Initializes a new instance of the WeakAction<T> class.

Declaration
public WeakAction(object target, Action<T> action, bool keepTargetAlive = false)
Parameters
Type Name Description
System.Object target

The target.

Action<T> action

The action.

System.Boolean keepTargetAlive

if set to true [keep target alive].

Properties

View Source

IsAlive

Gets a value indicating whether this instance is alive.

Declaration
public override bool IsAlive { get; }
Property Value
Type Description
System.Boolean

true if this instance is alive; otherwise, false.

Overrides
WeakAction.IsAlive
View Source

MethodName

Gets the name of the method.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String

The name of the method.

Overrides
WeakAction.MethodName

Methods

View Source

Execute()

Executes this instance.

Declaration
public void Execute()
View Source

Execute(T)

Executes the specified parameter.

Declaration
public void Execute(T parameter)
Parameters
Type Name Description
T parameter

The parameter.

View Source

ExecuteWithObject(Object)

Executes an action.

Declaration
public void ExecuteWithObject(object parameter)
Parameters
Type Name Description
System.Object parameter

A parameter passed as an object, to be casted to the appropriate type.

View Source

MarkForDeletion()

Marks for deletion.

Declaration
public void MarkForDeletion()

Implements

IExecuteWithObject

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)

See Also

WeakAction
IExecuteWithObject