public void Invoke(TEvent argument, InvariantObjectAndGCHandleTrackResurrection callback) { object?target = callback.Handle.Target; Utils.WeakExecuteActionLike(target, callback.Value, Utils.ExpectExactTypeOrNull <THandle>(target)); }
public bool DoesMatch(InvariantObjectAndGCHandleTrackResurrection element) => delegateComparer.Equals(@delegate, Utils.ExpectExactType <TDelegate>(element.Value)) && handleComparer.Equals(handle, Utils.ExpectExactTypeOrNull <THandle>(element.Handle.Target));
public void Invoke(TEvent argument, InvariantObjectAndGCHandleTrackResurrection callback) { object?target = callback.Handle.Target; Utils.WeakExecuteActionLike(target, callback.Value); }