示例#1
0
        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));
示例#3
0
        public void Invoke(TEvent argument, InvariantObjectAndGCHandleTrackResurrection callback)
        {
            object?target = callback.Handle.Target;

            Utils.WeakExecuteActionLike(target, callback.Value);
        }