Skip to content

Instantly share code, notes, and snippets.

@zHaytam
Last active March 21, 2021 11:10
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 zHaytam/368dc8350f227461d82ad247efa22e1e to your computer and use it in GitHub Desktop.
Save zHaytam/368dc8350f227461d82ad247efa22e1e to your computer and use it in GitHub Desktop.
public readonly struct EventCallback : IEventCallback
{
internal readonly MulticastDelegate Delegate;
internal readonly IHandleEvent Receiver;
public EventCallback(IHandleEvent receiver, MulticastDelegate @delegate)
{
Receiver = receiver;
Delegate = @delegate;
}
// Other stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment