Skip to content

ProfessionalCSharp/MoreSamples

Repository files navigation

More Samples

This repository contains additional code samples for the book Professional C# 6. Currently you'll find samples in these categories:

  • Azure
  • C#
  • .NET Core
  • Entity Framework Core
  • ASP.NET Core
  • Universal Windows Platform (UWP)
  • WPF

Enjoy!

Azure

  • Hosting Blazor on Azure Storage Websites with Azure Functions in the backend
  • Hosting Angular on Azure Storage Websites with Azure Functions in the backend
  • Azure Active Directory B2C with ASP.NET Core
  • Using EF Core with Azure Cosmos DB
  • Relations with Azure Cosmos DB and EF Core
  • Azure IoT - Click the Azure IoT Button
  • Azure Functions with Dependency Injection

C#

  • Literals
  • Tuples
  • Out Vars and Ref Returns
  • Expression Bodied Members
  • Pattern Matching
  • Non-nullable Reference Types (C# 8)
  • Pattern matching extended (C# 8)
  • Indexes and Ranges (C# 8)
  • Async Streams (C# 8)
  • Using Declaration (C# 8)
  • Top Level Statements (C# 9)

.NET Core

  • Dependency Injection with the Host class
  • Dependency Injection
  • Dependency Injection with Options
  • Configuration
  • Dependency Injection with Configuration
  • HTTP Client Factory
  • Markdown
  • Self-contained
  • Project Tye

Entity Framework Core

  • Inheritance (TPH)
  • Mapping to Getter Only Properties
  • Lazy Loading

ASP.NET Core

  • View Components
  • GDPR Support with ASP.NET Core 2.1
  • Identity Pages with ASP.NET Core 2.1
  • Library Manager with Visual Studio 2017 Update 8
  • Compare ASP.NET Core technologies
  • Async Streams with ASP.NET Core SignalR and C# 8

Universal Windows Platform (UWP)

  • Ink
  • Simple MVVM
  • Grouped ListView
  • Hamburger and SplitView
  • Deep Linking
  • Open Tab Items Dynamically

WPF

  • 3D with WPF
  • Open Tab Items Dynamically
  • Desktop Bridge

.NET Framework (samples from older Professional C# book editions)

  • WCF - various WCF samples (Professional C# 5 and .NET 4.5.1)
  • Transactions - various System.Transactions samples (Professional C# 5 and .NET 4.5.1)
  • Assemblies - create code dynamically, and other samples (Professional C# 5 and .NET 4.5.1)
  • Entity Framework (Professional C# 5 and .NET 4.5.1)