Skip to content

Instantly share code, notes, and snippets.

@christiannagel

christiannagel/Program.cs

Last active Jul 22, 2017
Embed
What would you like to do?
ArgumentNullException with yield
string[] names = { "James", "Niki", "John", "Gerhard", "Jack" };
var q = names.Where(null);
foreach (var n in q) // callstack position for exception
{
Console.WriteLine(n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.