Code samples for the book Professional C# 7 and .NET Core 2.0 (with updates for 2.1), Wrox Press
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ADONET update readme Jul 4, 2018
API remove Beta 1 note Oct 5, 2018
ASPNETCore 3.0 was in there Oct 5, 2018
AdvancedWindows package updates Jul 18, 2018
Arrays
Async async - update to .NET Core 2.1 #43 Jul 18, 2018
BotAndCognitive
Collections collections - update to .NET Core 2.1 #43 Jul 18, 2018
Composition chapter reorg Feb 17, 2018
CoreCSharp
Delegates
DependencyInjection dependency injection - update to .NET Core 2.1 #43 Jul 18, 2018
Diagnostics diagnostics - update to .NET Core 2.1 #43 Jul 18, 2018
EFCore
ErrorsAndExceptions update chapter readme Jan 24, 2018
FilesAndStreams files and streams - async main Nov 4, 2018
FunctionalProgramming functional programming - update to .NET Core 2.1 #43 Jul 18, 2018
Generics Generics to 2.1.1 #43 Jul 4, 2018
HelloWorld
LINQ LINQ - update to .NET Core 2.1 #43 Jul 18, 2018
Libraries chapter readme files Jan 24, 2018
Localization
MVC .NET Core 2.1 updates #43 Nov 4, 2018
Memory remove nuget.config, not needed anymore Sep 23, 2018
MoreWindows package updates Nov 3, 2018
Networking change async main dnslookup Oct 8, 2018
ObjectOrientation OO to 2.1.1 #43 Jul 4, 2018
ObjectsAndTypes Objects and Types to 2.1.1 #43 Jul 4, 2018
OperatorsAndCasts Update Operators and Casts to 2.1.1 #43 Jul 4, 2018
Patterns chapter reorg Feb 17, 2018
PatternsXamarinShared fix navigation Feb 3, 2018
ReflectionAndDynamic reflection - update to .NET Core 2.1 #43 Jul 5, 2018
Security package updates May 9, 2018
SignalRAndWebHooks package updates Oct 5, 2018
SpecialCollections special collections - update to .NET Core 2.1 #43 Jul 18, 2018
StringsAndRegularExpressions strings and regular expressions - update to .NET Core 2.1 #43 Jul 18, 2018
Styles package updates Aug 13, 2018
Tasks update to .NET Core 2.1 #43 Jul 18, 2018
Tests chapter reorg Feb 17, 2018
VisualStudio chapter readme files Jan 24, 2018
Windows package updates Jul 18, 2018
XMLandJSON
Xamarin images for Xamarin.Forms Feb 21, 2018
.gitignore ignore package-lock.json Oct 5, 2018
BookUpdates.md .NET Core 2.1 updates #43 Nov 4, 2018
LICENSE Initial commit Jun 11, 2017
README.md update readme Mar 6, 2018
README.txt

README.md

Professional C# 7 and .NET Core 2.0

Code samples for the Wrox Press book Professional C# 7 and .NET Core 2.0

To compile and run the samples, you need Visual Studio 2017, Visual Studio for Mac, or Visual Studio Code.

You can download these tools here: Visual Studio.

The console app samples can be used on Windows, Linux, or Mac. Here is the installation procedure for .NET Core: .NET on Linux

If you're using Visual Studio, Update 5 or a later version of Visual Studio 2017 is needed. With the Visual Studio Installer you need to select this workload to compile most of the code samples: .NET Core cross-platform development.

ASP.NET Core samples need this workload: ASP.NET and web development.

Windows app samples require Windows 10, Windows 10 Fall Creators Update (build 16299) or a later version. With the Windows app samples, Visual Studio 2017 Update 5 is required with this workload: Universal Windows Platform Development.

Compiling the Xamarin samples, you have different options using a Mac or a Windows system:

  • On the Mac, you can install Visual Studio for Mac to compile the Android and iOS samples.

  • On Windows 10, you can use Visual Studio 2017. To compile the iOS samples, you also need a Mac. Using only Windows 10, you can compile and run the Windows and Android code samples.

  • Visual Studio 2017 with the .NET Core workload

Here's the list of chapters and the folders for the code samples:

  • Chapter 1 - .NET Applications and Tools (HelloWorld)
  • Chapter 2 - Core C# (CoreCsharp)
  • Chapter 3 - Objects and Types (ObjectsAndTypes)
  • Chapter 4 - Object-Oriented Programming with C# (ObjectOrientation)
  • Chapter 5 - Generics (Generics)
  • Chapter 6 - Operators and Casts (OperatorsAndCasts)
  • Chapter 7 - Arrays (Arrays)
  • Chapter 8 - Delegates, Lambdas, and Events (Delegates)
  • Chapter 9 - Strings and Regluar Expressions (StringsAndRegularExpressions)
  • Chapter 10 - Collections (Collections)
  • Chapter 11 - Special Collections (SpecialCollections)
  • Chapter 12 - Language Integrated Query (LINQ)
  • Chapter 13 - Functional Programming with C# (FunctionalProgramming)
  • Chapter 14 - Errors and Exceptions (ErrorsAndExceptions)
  • Chapter 15 - Asynchronous Programming (Async)
  • Chapter 16 - Reflection, Metadata, and Dynamic Programming (ReflectionAndDynamic)
  • Chapter 17 - Managed and Umanaged Memory (Memory)
  • Chapter 18 - Visual Studio 2017 (VisualStudio)
  • Chapter 19 - Libraries, Assemblies, Packages, and NuGet (Libraries)
  • Chapter 20 - Dependency Injection (DependencyInjection)
  • Chapter 21 - Tasks and Parallel Programming (Tasks)
  • Chapter 22 - Files and Streams (FilesAndStreams)
  • Chapter 23 - Networking (Networking)
  • Chapter 24 - Security (Security)
  • Chapter 25 - ADO.NET and Transactions (ADONet)
  • Chapter 26 - Entity Framework Core (EFCore)
  • Chapter 27 - Localization (Localization)
  • Chapter 28 - Testing (Tests)
  • Chapter 29 - Tracing, Logging, and Analytics (Diagnostics)
  • Chapter 30 - ASP.NET Core (ASPNETCore)
  • Chapter 31 - ASP.NET Core MVC (MVC)
  • Chapter 32 - Web API (API)
  • Chapter 33 - Windows Apps (Windows)
  • Chapter 34 - Patterns with XAML Apps (Patterns and PatternsXamarinShared)
  • Chapter 35 - Styling Windows Apps (Styles)
  • Chapter 36 - Advanced Windows (AdvancedWindows)
  • Chapter 37 - Xamarin.Forms (Xamarin and PatternsXamarinShared)

Bonus Chapters

  • Bonus Chapter 1 - Composition (Composition)
  • Bonus Chapter 2 - XML and JSON (XMLandJSON)
  • Bonus Chapter 3 - SignalR and WebHooks (SignalRAndWebHooks)
  • Bonus Chapter 4 - Bots and Cognitive Services (BotAndCognitive)
  • Bonus Chapter 5 - More Windows Apps Features (MoreWindows)

In case you've some issues to compile and run the samples, create an issue in the Professional C# 7 GitHub repository.

Have fun coding and enjoy the book!

Christian