Generated by DocFX

Class WeakAction

Class WeakAction.

Inheritance
System.Object
WeakAction
WeakAction<T>
Namespace: ISynergy.Framework.Core.Events
Assembly: ISynergy.Framework.Core.dll
Syntax
public class WeakAction : object

Constructors

View Source

WeakAction()

Initializes a new instance of the WeakAction class.

Declaration
protected WeakAction()
View Source

WeakAction(Action, Boolean)

Initializes a new instance of the WeakAction class.

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

The action.

System.Boolean keepTargetAlive

if set to true [keep target alive].

View Source

WeakAction(Object, Action, Boolean)

Initializes a new instance of the WeakAction class.

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

The target.

Action action

The action.

System.Boolean keepTargetAlive

if set to true [keep target alive].

Properties

View Source

ActionReference

Gets or sets the action reference.

Declaration
protected WeakReference ActionReference { get; set; }
Property Value
Type Description
WeakReference

The action reference.

View Source

ActionTarget

Gets the action target.

Declaration
protected object ActionTarget { get; }
Property Value
Type Description
System.Object

The action target.

View Source

IsAlive

Gets a value indicating whether this instance is alive.

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

true if this instance is alive; otherwise, false.

View Source

IsStatic

Gets a value indicating whether this instance is static.

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

true if this instance is static; otherwise, false.

View Source

LiveReference

Gets or sets the live reference.

Declaration
protected object LiveReference { get; set; }
Property Value
Type Description
System.Object

The live reference.

View Source

Method

Gets or sets the method.

Declaration
protected MethodInfo Method { get; set; }
Property Value
Type Description
MethodInfo

The method.

View Source

MethodName

Gets the name of the method.

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

The name of the method.

View Source

Reference

Gets or sets the reference.

Declaration
protected WeakReference Reference { get; set; }
Property Value
Type Description
WeakReference

The reference.

View Source

Target

Gets the target.

Declaration
public object Target { get; }
Property Value
Type Description
System.Object

The target.

Methods

View Source

Execute()

Executes this instance.

Declaration
public void Execute()
View Source

MarkForDeletion()

Marks for deletion.

Declaration
public void MarkForDeletion()

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)