This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"); |
NewerOlder