Created
July 7, 2016 04:51
-
-
Save leahein/9fcf9a2a806d733da400b1694e13d9cc to your computer and use it in GitHub Desktop.
This file contains 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
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