Skip to content

Instantly share code, notes, and snippets.

@Draco18s
Created August 27, 2022 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Draco18s/0a359e62a0f700888f88f142eb7e39d2 to your computer and use it in GitHub Desktop.
Save Draco18s/0a359e62a0f700888f88f142eb7e39d2 to your computer and use it in GitHub Desktop.
Type eventType = typeof(T);
MessengerInternal.OnBroadcasting(eventType, mode);
Action<T>[] invocationList = MessengerInternal.GetInvocationList<Action<T>>(eventType);
foreach(Action<T> del in invocationList) {
del.Invoke(arg1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment