Skip to content

Instantly share code, notes, and snippets.

@20chan
Created September 5, 2019 05:39
Show Gist options
  • Select an option

  • Save 20chan/7101773c4fa79f46025da813aed6264c to your computer and use it in GitHub Desktop.

Select an option

Save 20chan/7101773c4fa79f46025da813aed6264c to your computer and use it in GitHub Desktop.
C# horrible event auto property
public event Action<bool> OnGameOver {
add => ((ITriggeringGimmick)triggering).OnGameOver += value;
remove => ((ITriggeringGimmick)triggering).OnGameOver -= value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment