Version 3.3.1.2

WeakReferenceEventListener<TListener> class

Namespace: Sirenix.OdinInspector.Editor.Internal
Assembly: Sirenix.OdinInspector.Editor
public sealed class WeakReferenceEventListener<TListener>
    where TListener : class
Inheritance
  • System.Object
  • WeakReferenceEventListener<TListener>

Type Parameters

TListener

Constructors

WeakReferenceEventListener(Action<TListener, Object[]>)
public WeakReferenceEventListener(Action<TListener, object[]> invokeEventOnListener)
Parameters
System.Action<TListener, System.Object[]> invokeEventOnListener

Fields

InvokeEventOnListener
public Action<TListener, object[]> InvokeEventOnListener
Listeners
public List<WeakReference<TListener>> Listeners

Methods

DesubscribeListener(TListener)
public void DesubscribeListener(TListener listener)
Parameters
TListener listener

InvokeEvent(Object[])
public void InvokeEvent(object[] args)
Parameters
System.Object[] args

SubscribeListener(TListener)
public void SubscribeListener(TListener listener)
Parameters
TListener listener