Skip to content

Instantly share code, notes, and snippets.

@taross-f
Created March 14, 2017 04:34
Show Gist options
  • Save taross-f/60191661e01c70eb648011cb26f72609 to your computer and use it in GitHub Desktop.
Save taross-f/60191661e01c70eb648011cb26f72609 to your computer and use it in GitHub Desktop.
aggregate check
void Main()
{
new int[0].DefaultIfEmpty().Aggregate((x, y) => x + y).Dump();
new int[0].DefaultIfEmpty().Dump();
new int[0].Aggregate((x, y) => x + y).Dump(); // dead
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment