Skip to content

Instantly share code, notes, and snippets.

@leahein
Created July 7, 2016 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leahein/9fcf9a2a806d733da400b1694e13d9cc to your computer and use it in GitHub Desktop.
Save leahein/9fcf9a2a806d733da400b1694e13d9cc to your computer and use it in GitHub Desktop.
public IEnumerable<Books> AllHumor()
{
return from book in BookCase.Books
where book.genre.Humor == true
select book;
}
public IEnumerable<Books> Fiction(IEnumerable<Books> sample)
{
return from book in sample
where book.Category == "Fiction"
select book;
}
public IEnumerable<Books> Biography(IEnumerable<Books> sample)
{
return from book in sample
where book.Category == "Biography"
select book;
}
var FunnyFiction = Fiction(AllHumor());
var FunnyBios = Biography(AllHumor());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment