Skip to content

Instantly share code, notes, and snippets.

@zHaytam
Last active March 21, 2021 11:10
Show Gist options
  • 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