Wrong version of .NET Core in one of the projects
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Books.ConsoleApp;
|
||||
|
||||
public class DemoFunc
|
||||
{
|
||||
@ -22,7 +23,7 @@ public class DemoFunc
|
||||
Func<string> helloWorldFunc = AsFunc("Hello World!");
|
||||
var helloWorld = Exec(helloWorldFunc);
|
||||
// helloWorld == "Hello World!"
|
||||
|
||||
|
||||
intFunc = AsFunc(1);
|
||||
var one = Exec(intFunc);
|
||||
// one == 1);
|
||||
@ -37,7 +38,8 @@ public class DemoFunc
|
||||
|
||||
|
||||
Func<IEnumerable<BooksByAuthor>, string, BooksByAuthor> getGataloguedAuthor =
|
||||
(booksByAuthor, authorName) => {
|
||||
(booksByAuthor, authorName) =>
|
||||
{
|
||||
// can do complex stuff or help in debugging
|
||||
return booksByAuthor.FirstOrDefault(ba => ba.Author == authorName);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user