Skip to content

Instantly share code, notes, and snippets.

@mattumotu
Created November 14, 2018 10:10
Show Gist options
  • Save mattumotu/2767c4dfa7a9cf39201a933b1d2c1e8f to your computer and use it in GitHub Desktop.
Save mattumotu/2767c4dfa7a9cf39201a933b1d2c1e8f to your computer and use it in GitHub Desktop.
// Action declarations
public delegate void Action();
public delegate void Action<in T>(T arg);
public delegate void Action<in T1, in T2>(T1 arg1, T2 arg2);
// ...
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15, in T16>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment