Wrong version of .NET Core in one of the projects

This commit is contained in:
2019-11-26 21:17:07 +01:00
parent 1e60f78192
commit 56b44a63a5
7 changed files with 144 additions and 60 deletions

View File

@ -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);
};

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>