Skip to content

Instantly share code, notes, and snippets.

View micahlmartin's full-sized avatar

Micah Martin micahlmartin

View GitHub Profile
test
//Example of a basic bug that causes an infinite loop
public static IEnumerable<Filter> Create(IEnumerable<string> filters)
{
if (filters == null)
throw new ArgumentNullException("filters");
if (filters.Count() == 0)
throw new ArgumentException("At least 1 filter must be specified", "filters");