Linq extensions examplified

This commit is contained in:
2019-01-06 14:15:40 +01:00
parent 786b398e26
commit ba2e475f5b
7 changed files with 222 additions and 0 deletions

View File

@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace Linq_examples
{
public class BookRepository
{
public IEnumerable<Book> GetBooks()
{
return new List<Book>
{
new Book(){Title="ADO.Net Step by step", Price=5},
new Book(){Title="ASP.Net MVC", Price=9.99f},
new Book(){Title="ASP.Net Web API", Price=12},
new Book(){Title="C# Advanced topics", Price=7},
new Book(){Title="C# Advanced topics", Price=9}
};
}
}
}