From 139f19271e25827131fc33aa79249e8cd4b0afaa Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Wed, 2 Nov 2022 18:02:40 +0000 Subject: [PATCH] Update book-links.md --- book-links.md | 997 ++++++++++++++++++++++++-------------------------- 1 file changed, 483 insertions(+), 514 deletions(-) diff --git a/book-links.md b/book-links.md index 98d8af3..c910de5 100644 --- a/book-links.md +++ b/book-links.md @@ -5,16 +5,17 @@ - [.NET Interactive](#net-interactive) - [Command Line Interfaces](#command-line-interfaces) - [.NET](#net) + - [.NET performance improvements](#net-performance-improvements) - [Open source and other projects related to .NET](#open-source-and-other-projects-related-to-net) - [Git](#git) - [Help and learning](#help-and-learning) - [Chapter 2 - Speaking C#](#chapter-2---speaking-c) + - [What's New in C#?](#whats-new-in-c) - [C# language version and the journey to C# 11](#c-language-version-and-the-journey-to-c-11) - [C# language](#c-language) - [C# implemented proposals](#c-implemented-proposals) - [C# proposals being worked on](#c-proposals-being-worked-on) - - [Text types](#text-types) - - [Number types](#number-types) + - [Text and number types](#text-and-number-types) - [Console apps and formatting](#console-apps-and-formatting) - [Miscellaneous](#miscellaneous) - [Chapter 3 - Controlling Flow, Converting Types, and Handling Exceptions](#chapter-3---controlling-flow-converting-types-and-handling-exceptions) @@ -24,7 +25,6 @@ - [Handling exceptions](#handling-exceptions) - [Coding problems in interviews](#coding-problems-in-interviews) - [Chapter 4 - Writing, Debugging, and Testing Functions](#chapter-4---writing-debugging-and-testing-functions) - - [Concepts](#concepts) - [Debugging](#debugging) - [Instrumenting](#instrumenting) - [Testing](#testing) @@ -32,19 +32,16 @@ - [Fields](#fields) - [Methods](#methods) - [Properties](#properties) - - [Pattern matching](#pattern-matching) - - [Records](#records) - - [Miscellaneous](#miscellaneous-1) + - [Pattern matching, Records, and Miscellaneous](#pattern-matching-records-and-miscellaneous) - [Chapter 6 - Implementing Interfaces and Inheriting Classes](#chapter-6---implementing-interfaces-and-inheriting-classes) - - [Operator overloading](#operator-overloading) - - [Delegates and events](#delegates-and-events) + - [Operator overloading, delegates and events](#operator-overloading-delegates-and-events) - [Interfaces and generics](#interfaces-and-generics) - [Memory, reference and value types](#memory-reference-and-value-types) - [Null and nullability](#null-and-nullability) - [Inheritance](#inheritance) - [Chapter 7 - Packaging and Distributing .NET Types](#chapter-7---packaging-and-distributing-net-types) - - [.NET Standard](#net-standard) - [.NET versions](#net-versions) + - [.NET Standard](#net-standard) - [.NET API, packages and frameworks](#net-api-packages-and-frameworks) - [Roslyn, SDKs, and project templates](#roslyn-sdks-and-project-templates) - [Packaging and publishing](#packaging-and-publishing) @@ -54,16 +51,11 @@ - [Chapter 8 - Working with Common .NET Types](#chapter-8---working-with-common-net-types) - [Working with numbers](#working-with-numbers) - [Working with text and regular expressions](#working-with-text-and-regular-expressions) - - [Dates and times](#dates-and-times) - [Collections](#collections) - [Spans](#spans) - [Networking](#networking) - - [Assemblies and reflection](#assemblies-and-reflection) - - [Working with images](#working-with-images) - - [Internationalization](#internationalization) - [Chapter 9 - Working with Files, Streams, and Serialization](#chapter-9---working-with-files-streams-and-serialization) - - [File system, encoding, and streams](#file-system-encoding-and-streams) - - [Serialization](#serialization) + - [File system, encoding, streams, and serialization](#file-system-encoding-streams-and-serialization) - [JSON](#json) - [Chapter 10 - Working with Data Using Entity Framework Core](#chapter-10---working-with-data-using-entity-framework-core) - [Legacy EF 6](#legacy-ef-6) @@ -80,20 +72,19 @@ - [Chapter 12 - Introducing Web Development Using ASP.NET Core](#chapter-12---introducing-web-development-using-aspnet-core) - [.NET apps](#net-apps) - [.NET Content Management Systems](#net-content-management-systems) - - [ASP.NET versions and features](#aspnet-versions-and-features) - - [Web development technologies](#web-development-technologies) -- [Chapter 13 - Building Websites Using ASP.NET Core Razor Pages](#chapter-13---building-websites-using-aspnet-core-razor-pages) - [General web development](#general-web-development) + - [ASP.NET versions and features](#aspnet-versions-and-features) +- [Chapter 13 - Building Websites Using ASP.NET Core Razor Pages](#chapter-13---building-websites-using-aspnet-core-razor-pages) - [ASP.NET Core](#aspnet-core) - [Razor Pages and layouts](#razor-pages-and-layouts) - [Endpoint routing](#endpoint-routing) - [Chapter 14 - Building Websites Using the Model-View-Controller Pattern](#chapter-14---building-websites-using-the-model-view-controller-pattern) - - [Security and privacy](#security-and-privacy) - [Setting up and configuring](#setting-up-and-configuring) - [Controllers](#controllers) - [Models](#models) - [Views](#views) - - [Miscellaneous](#miscellaneous-2) + - [Security and privacy](#security-and-privacy) + - [Miscellaneous](#miscellaneous-1) - [Chapter 15 - Building and Consuming Web Services](#chapter-15---building-and-consuming-web-services) - [Web service technologies](#web-service-technologies) - [Web service routing](#web-service-routing) @@ -113,684 +104,662 @@ # Chapter 1 - Hello, C#! Welcome, .NET! ## Visual Studio 2022 for Windows -- Download Visual Studio for Windows: https://visualstudio.microsoft.com/downloads/ -- Sign up for a Microsoft account: https://signup.live.com/ -- Visual Studio for Windows documentation: https://docs.microsoft.com/en-us/visualstudio/windows/ -- MSBuild and 64-bit Visual Studio 2022: https://devblogs.microsoft.com/dotnet/msbuild-and-64-bit-visual-studio-2022/ -- Create C# apps with Visual Studio: https://docs.microsoft.com/en-us/visualstudio/get-started/csharp/ -- Tutorial: Open a project from a repo: https://docs.microsoft.com/en-us/visualstudio/get-started/tutorial-open-project-from-repo-visual-studio-2019 -- Comparison of Visual Studio Code and Visual Studio: https://www.itworld.com/article/3403683/visual-studio-code-stepping-on-visual-studios-toes.html +- [Download Visual Studio for Windows](https://visualstudio.microsoft.com/downloads/) +- [Sign up for a Microsoft account](https://signup.live.com/) +- [Visual Studio for Windows documentation](https://learn.microsoft.com/en-us/visualstudio/windows/) +- [Microsoft Visual Studio on YouTube](https://www.youtube.com/visualstudio) +- [Cool features in Visual Studio 2022](https://www.youtube.com/watch?v=NBfNnyPQTKs) +- [MSBuild and 64-bit Visual Studio 2022](https://devblogs.microsoft.com/dotnet/msbuild-and-64-bit-visual-studio-2022/) +- [Create C# apps with Visual Studio](https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/) +- [Comparison of Visual Studio Code and Visual Studio](https://www.itworld.com/article/3403683/visual-studio-code-stepping-on-visual-studios-toes.html) ## Visual Studio Code -- Download Visual Studio Code: https://code.visualstudio.com/ -- Set up Visual Studio Code: https://code.visualstudio.com/docs/setup/setup-overview -- Visual Studio Code key bindings and shortcuts: https://code.visualstudio.com/docs/getstarted/keybindings - - Windows: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf - - macOS: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf - - Linux: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf -- Latest versions of Visual Studio Code: https://code.visualstudio.com/updates -- Visual Studio Code documentation: https://code.visualstudio.com/docs - - Visual Studio Code user interface: https://code.visualstudio.com/docs/getstarted/userinterface - - Visual Studio Code support for C#: https://code.visualstudio.com/docs/languages/csharp - - Source code version control with Visual Studio Code: https://code.visualstudio.com/Docs/editor/versioncontrol -- Microsoft's plans for Visual Studio Code: https://github.com/Microsoft/vscode/wiki/Roadmap -- Learning with VS Code on Chromebooks: https://code.visualstudio.com/blogs/2020/12/03/chromebook-get-started -- Google and Amazon are supporters of Visual Studio Code: https://www.cnbc.com/2018/12/20/microsoft-cmo-capossela-says-google-employees-use-visual-studio-code.html -- Visual Studio Code: How Microsoft's 'any OS, any programming language, any software' plan is paying off: https://www.zdnet.com/article/visual-studio-code-how-microsofts-any-os-any-programming-language-any-software-plan-is-paying-off/ -- The History of Visual Studio Code: https://mybuild.microsoft.com/sessions/6b571733-8198-48da-b870-ef804dcfea93?source=sessions +- [Download Visual Studio Code](https://code.visualstudio.com/) +- [Visual Studio Code documentation](https://code.visualstudio.com/docs) +- [Set up Visual Studio Code](https://code.visualstudio.com/docs/setup/setup-overview) +- [Visual Studio Code key bindings and shortcuts](https://code.visualstudio.com/docs/getstarted/keybindings) + - [Windows shortcuts PDF](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf) + - [macOS shortcuts PDF](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf) + - [Linux shortcuts PDF](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf) +- [Microsoft's roadmap for Visual Studio Code](https://github.com/Microsoft/vscode/wiki/Roadmap) +- [Learning with VS Code on Chromebooks](https://code.visualstudio.com/blogs/2020/12/03/chromebook-get-started) +- [The History of Visual Studio Code | BDL134](https://www.youtube.com/watch?v=Tw8l0WzQxmY) ## Other C# code editors and platforms -- Stack Overflow survey 2021 - Integrated development environment: https://insights.stackoverflow.com/survey/2021#section-most-popular-technologies-integrated-development-environment -- Stack Overflow survey 2019 - Most Popular Development Environments: https://insights.stackoverflow.com/survey/2019#development-environments-and-tools -- Visual Studio for Mac documentation: https://docs.microsoft.com/en-us/visualstudio/mac/ -- GitHub Codespaces: https://docs.github.com/en/github/developing-online-with-codespaces/about-codespaces -- JetBrains Rider: https://www.jetbrains.com/rider/ -- Rider documentation: https://www.jetbrains.com/help/rider/Introduction.html -- How to code with C# and .NET using a Raspberry Pi 400 with Ubuntu Desktop 64-bit by reading an extra article that I wrote at the following link: https://github.com/markjprice/cs9dotnet5-extras/blob/main/raspberry-pi-ubuntu64/README.md +- [Stack Overflow survey 2021 - Integrated development environment](https://insights.stackoverflow.com/survey/2021#section-most-popular-technologies-integrated-development-environment) +- [Stack Overflow survey 2019 - Most Popular Development Environments](https://insights.stackoverflow.com/survey/2019#development-environments-and-tools) +- [Visual Studio for Mac documentation](https://learn.microsoft.com/en-us/visualstudio/mac/) +- [GitHub Codespaces](https://docs.github.com/en/codespaces/overview) +- [JetBrains Rider](https://www.jetbrains.com/rider/) +- [Rider documentation](https://www.jetbrains.com/help/rider/Introduction.html) +- [.NET 6 is now in Ubuntu 22.04](https://devblogs.microsoft.com/dotnet/dotnet-6-is-now-in-ubuntu-2204/) ## .NET Interactive -- .NET Interactive documentation: https://github.com/dotnet/interactive/tree/main/docs -- VS Code Notebooks: A Deep Dive video: https://www.youtube.com/watch?v=D-AXZZDTQhM -- Discuss: File format in the .NET Interactive VS Code extension: https://github.com/dotnet/interactive/issues/467 -- Polyglot Notebooks: Variable Sharing: https://devblogs.microsoft.com/dotnet/net-interactive-preview-3-vs-code-insiders-and-polyglot-notebooks/ -- Using HTML and JavaScript in .NET Interactive: https://github.com/dotnet/interactive/blob/main/docs/javascript-overview.md -- .NET Interactive Samples: https://github.com/dotnet/interactive/tree/main/samples -- Markdown syntax: https://daringfireball.net/projects/markdown/syntax +- [.NET Interactive documentation](https://github.com/dotnet/interactive/blob/main/docs/README.md) +- [VS Code Notebooks: A Deep Dive video](https://www.youtube.com/watch?v=D-AXZZDTQhM) +- [Discuss: File format in the .NET Interactive VS Code extension](https://github.com/dotnet/interactive/issues/467) +- [Polyglot Notebooks: Variable Sharing](https://devblogs.microsoft.com/dotnet/net-interactive-preview-3-vs-code-insiders-and-polyglot-notebooks/) +- [Using HTML and JavaScript in .NET Interactive](https://github.com/dotnet/interactive/blob/main/docs/javascript-overview.md) +- [.NET Interactive Samples](https://github.com/dotnet/interactive/blob/main/samples/readme.md) +- [Markdown syntax](https://daringfireball.net/projects/markdown/syntax) ## Command Line Interfaces -- Windows Terminal as your Default Command Line Experience: https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/ -- .NET Core Command-Line Interface (CLI) tool: https://aka.ms/dotnet-cli-docs +- [Windows Terminal as your Default Command Line Experience](https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/) +- [.NET Core Command-Line Interface (CLI) tool overview](https://aka.ms/dotnet-cli-docs) ## .NET -- Download .NET SDK: https://www.microsoft.com/net/download -- Stack Overflow survey 2021 - Most loved frameworks and libraries: https://insights.stackoverflow.com/survey/2021#section-most-loved-dreaded-and-wanted-other-frameworks-and-libraries -- Themes of .NET: https://themesof.net/ -- Microsoft's positioning of .NET Core and .NET Framework: https://devblogs.microsoft.com/dotnet/update-on-net-core-3-0-and-net-framework-4-8/ -- Microsoft's plans for the journey to one .NET: https://devblogs.microsoft.com/dotnet/announcing-net-5-preview-4-and-our-journey-to-one-net/ -- Official list of .NET 6 supported operating systems: https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md -- Windows ARM64 support: https://github.com/dotnet/runtime/issues/36699 -- .NET Support Policy: https://dotnet.microsoft.com/platform/support/policy/dotnet-core -- .NET versions: https://docs.microsoft.com/en-us/dotnet/core/versions/ -- .NET Uninstall Tool: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool -- Remove .NET SDKs and runtimes: https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions -- ASP.NET Core and EF Core branding for .NET 5: https://docs.microsoft.com/en-us/dotnet/core/dotnet-five -- .NET Optional SDK Workloads: https://github.com/dotnet/designs/blob/main/accepted/2020/workloads/workloads.md -- .NET Core runtime, CoreCLR: https://github.com/dotnet/runtime -- .NET Core Roadmap: https://github.com/dotnet/core/blob/master/roadmap.md -- .NET Standard FAQ: https://github.com/dotnet/standard/blob/master/docs/faq.md -- .NET Standard versions and which .NET platforms support them: https://github.com/dotnet/standard/blob/master/docs/versions.md -- .NET Team Members: https://twitter.com/i/lists/120961876//members +- [Download .NET SDK](https://dotnet.microsoft.com/en-us/download) +- [Stack Overflow survey 2021 - Most loved frameworks and libraries](https://insights.stackoverflow.com/survey/2021#section-most-loved-dreaded-and-wanted-other-frameworks-and-libraries) +- [Themes of .NET](https://themesof.net/) +- [Microsoft's positioning of .NET Core and .NET Framework](https://devblogs.microsoft.com/dotnet/update-on-net-core-3-0-and-net-framework-4-8/) +- [Microsoft's plans for the journey to one .NET](https://devblogs.microsoft.com/dotnet/announcing-net-5-preview-4-and-our-journey-to-one-net/) +- [Official list of .NET 7 supported operating systems](https://github.com/dotnet/core/blob/main/release-notes/7.0/supported-os.md) +- [.NET Support Policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) +- [.NET versions](https://learn.microsoft.com/en-us/dotnet/core/versions/) +- [.NET Uninstall Tool](https://learn.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool) +- [How to remove .NET SDKs and runtimes](https://learn.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions) +- [ASP.NET Core and EF Core branding for .NET 5](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-5) +- [.NET Optional SDK Workloads](https://github.com/dotnet/designs/blob/main/accepted/2020/workloads/workloads.md) +- [.NET Runtime](https://github.com/dotnet/runtime/blob/main/README.md) +- [.NET Release Schedule](https://github.com/dotnet/core/blob/main/roadmap.md) +- [.NET Team Members on Twitter](https://twitter.com/i/lists/120961876//members) +- [dotnet new templates](https://github.com/dotnet/templating/wiki/Available-templates-for-dotnet-new) + +## .NET performance improvements +- [Arm64 Performance Improvements in .NET 7](https://devblogs.microsoft.com/dotnet/arm64-performance-improvements-in-dotnet-7/) +- [Performance Improvements in .NET 7](https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/) +- [Performance Improvements in .NET 6](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-6/) +- [Performance Improvements in .NET 5](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-5/) +- [Performance Improvements in .NET Core 3.0](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-3-0/) +- [Performance Improvements in .NET Core 2.1](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-2-1/) +- [Performance Improvements in .NET Core](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core/) ## Open source and other projects related to .NET -- Mono project: http://www.mono-project.com/ -- Unity project: https://docs.unity3d.com/ -- Open source projects to enable WCF and WF to migrate to .NET 5: https://devblogs.microsoft.com/dotnet/supporting-the-community-with-wf-and-wcf-oss-projects/ -- Open source project for Blazor Web Forms components: https://github.com/FritzAndFriends/BlazorWebFormsComponents +- [Mono project](http://www.mono-project.com/) +- [Unity project](https://docs.unity3d.com/) +- [Open source projects to enable WCF and WF to migrate to .NET 5](https://devblogs.microsoft.com/dotnet/supporting-the-community-with-wf-and-wcf-oss-projects/) +- [CoreWCF 1.1.0 and project templates](https://devblogs.microsoft.com/dotnet/corewcf-1-1-0-and-project-templates/) +- [Upgrading a WCF service to .NET 6 with CoreWCF](https://devblogs.microsoft.com/dotnet/upgrading-a-wcf-service-to-dotnet-6/) +- [CoreWCF 1.0 has been Released, WCF for .NET Core and .NET 5+](https://devblogs.microsoft.com/dotnet/corewcf-v1-released/) +- [Open source project for Blazor Web Forms components](https://github.com/FritzAndFriends/BlazorWebFormsComponents/blob/dev/README.md) ## Git -- Download Git: https://git-scm.com/download -- Download GitHub Desktop: https://desktop.github.com -- Become a master at Git and Open Source: https://devblogs.microsoft.com/visualstudio/become-a-master-at-git-and-open-source/ +- [Download Git](https://git-scm.com/download) +- [Download GitHub Desktop](https://desktop.github.com) +- [Become a master at Git and Open Source](https://devblogs.microsoft.com/visualstudio/become-a-master-at-git-and-open-source/) ## Help and learning -- Raise an issue with the book: https://github.com/markjprice/cs10dotnet6/issues -- .NET Conf 2021 Recap – Videos, Slides, Demos, and More: https://devblogs.microsoft.com/dotnet/net-conf-2021-recap-videos-slides-demos-and-more/ -- Microsoft Docs: https://docs.microsoft.com/ -- Official .NET Blog written by the .NET engineering teams: https://devblogs.microsoft.com/dotnet/ -- Scott Hanselman's videos: http://computerstufftheydidntteachyou.com/ -- Get better at programming by learning how things work: https://jvns.ca/blog/learn-how-things-work/ -- Practice .NET anywhere with .NET Fiddle: https://dotnetfiddle.net/ -- Try .NET: https://try.dot.net/ -- Stack Overflow: https://stackoverflow.com/ -- Google Advanced Search: https://www.google.com/advanced_search -- Microsoft Learn: https://docs.microsoft.com/en-us/learn/ -- .NET Videos: https://dotnet.microsoft.com/learn/videos -- Microsoft Channel 9 – .NET Videos: https://channel9.msdn.com/Search?term=.net&lang-en=true +- [Raise an issue with the book](https://github.com/markjprice/cs11dotnet7/issues): Please tell me as much as possible about the scenario e.g. the book section title and page number, your operating system and code editor including version, project file (.csproj), code files, what you expected and what actually happened, and so on. +- [.NET Conf 2021 Recap – Videos, Slides, Demos, and More](https://devblogs.microsoft.com/dotnet/net-conf-2021-recap-videos-slides-demos-and-more/) +- [Microsoft Learn - Technical Documentation](https://learn.microsoft.com/en-us/docs/) +- [Official .NET Blog written by the .NET engineering teams](https://devblogs.microsoft.com/dotnet/) +- [Scott Hanselman's Computer Stuff They Didn't Teach You video series on YouTube](http://computerstufftheydidntteachyou.com/) +- [Get better at programming by learning how things work](https://jvns.ca/blog/learn-how-things-work/) +- [Practice .NET anywhere with .NET Fiddle](https://dotnetfiddle.net/) +- [Try .NET](https://try.dot.net/) +- [Stack Overflow](https://stackoverflow.com/) +- [Google Advanced Search](https://www.google.com/advanced_search) +- [.NET Videos](https://dotnet.microsoft.com/en-us/learn/videos) +- [Microsoft Learn Shows – .NET Videos](https://learn.microsoft.com/en-us/search/?terms=.net&category=Show) # Chapter 2 - Speaking C# +## What's New in C#? +- [Early peek at C# 11 features](https://devblogs.microsoft.com/dotnet/early-peek-at-csharp-11-features/): Allow newlines in the “holes” of interpolated strings, List patterns, Parameter null-checking. +- [C# 11 preview: generic math, required members, and more](https://devblogs.microsoft.com/dotnet/csharp-11-preview-august-update/) +- [What's new in C# 11](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11) +- [What's new in C# 10](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-10) +- [What's new in C# 9.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9) +- [What's new in C# 8.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8) +- [What's new in C# 7.3](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-73) +- [What's new in C# 7.2](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-72) +- [What's new in C# 7.1](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-71) +- [What's new in C# 7.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-70) +- [What's new in C# 6.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-60) +- [What's new in C# 5.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-50) +- [What's new in C# 4.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-40) +- [What's new in C# 3.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-30) +- [What's new in C# 2.0](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-20) + ## C# language version and the journey to C# 11 -- Early peek at C# 11 features: https://devblogs.microsoft.com/dotnet/early-peek-at-csharp-11-features/ -- What's new in C# 11: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11 -- What's new in C# 10: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-10 -- What's new in C# 9.0: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9 -- What's new in C# 8.0: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8 -- What's new in C# 7.3: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-3 -- Welcome to C# 10: https://devblogs.microsoft.com/dotnet/welcome-to-csharp-10/ -- Announcing Open Source C# standardization: https://devblogs.microsoft.com/dotnet/announcing-open-source-c-standardization-standards/ -- Rosalyn and C# compiler versions: https://github.com/dotnet/roslyn/blob/master/docs/wiki/NuGet-packages.md -- How Microsoft rewrote its C# compiler in C# and made it open source: https://medium.com/microsoft-open-source-stories/how-microsoft-rewrote-its-c-compiler-in-c-and-made-it-open-source-4ebed5646f98 -- Current status of the C# language: https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md -- C# Language Specification 5.0: https://www.microsoft.com/en-us/download/details.aspx?id=7029 -- Draft proposals for C# Language Specifications for 6.0 and later: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/ -- C# 9 Workshop: https://github.com/dotnet-presentations/csharp-workshop -- C# language versioning: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version -- The history of C#: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history -- Interview with the C# Boss - Mads Torgersen: https://www.dotnetcurry.com/csharp/1455/mads-torgersen-interview -- The .NET Docs Show - C# Ask Me Anything 🤯: https://www.youtube.com/watch?v=U6cwOzUqjxY -- [EPIC] .NET 6 C# project templates use latest language idioms #3359: https://github.com/dotnet/templating/issues/3359 -- SDK support for implicit namespaces in C# projects #25066: https://github.com/dotnet/docs/issues/25066 +- [Announcing Open Source C# standardization](https://devblogs.microsoft.com/dotnet/announcing-open-source-c-standardization-standards/) +- [Rosalyn and C# compiler versions](https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md) +- [How Microsoft rewrote its C# compiler in C# and made it open source](https://medium.com/microsoft-open-source-stories/how-microsoft-rewrote-its-c-compiler-in-c-and-made-it-open-source-4ebed5646f98) +- [Current status of the C# language](https://github.com/dotnet/roslyn/blob/main/docs/Language%20Feature%20Status.md) +- [C# Language Specification 5.0](https://www.microsoft.com/en-us/download/details.aspx?id=7029) +- [Draft proposals for C# Language Specifications for 6.0 and later](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/) +- [C# 9 & 10 Workshop](https://github.com/dotnet-presentations/csharp-workshop) +- [C# language versioning](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version) +- [The history of C#](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history) +- [Interview with the C# Boss - Mads Torgersen](https://www.dotnetcurry.com/csharp/1455/mads-torgersen-interview) +- [The .NET Docs Show - C# Ask Me Anything 🤯](https://www.youtube.com/watch?v=U6cwOzUqjxY) +- [EPIC - .NET 6 C# project templates use latest language idioms #3359](https://github.com/dotnet/templating/issues/3359) +- [SDK support for implicit namespaces in C# projects #25066](https://github.com/dotnet/docs/issues/25066) ## C# language -- C# Reference: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/ -- C# Programming Guide: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/ -- C# Keywords: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/index -- Naming guidelines: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines -- Types (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/ -- Statements, Expressions, and Operators (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/ +- [C# Reference](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/) +- [C# Programming Guide](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/) +- [C# Keywords](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/) +- [Naming guidelines](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines) +- [Types (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/) +- [Statements, Expressions, and Operators (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/) ## C# implemented proposals -- C# 10: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-10.0 -- C# 9: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-9.0 -- C# 8: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-8.0 -- C# 7.3: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.3 -- C# 7.2: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.2 -- C# 7.1: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.1 -- C# 7.0: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.0 -- C# 6.0: https://github.com/dotnet/csharplang/tree/main/proposals/csharp-6.0 +- [C# 11](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-11.0) +- [C# 10](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-10.0) +- [C# 9](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-9.0) +- [C# 8](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-8.0) +- [C# 7.3](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.3) +- [C# 7.2](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.2) +- [C# 7.1](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.1) +- [C# 7.0](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-7.0) +- [C# 6.0](https://github.com/dotnet/csharplang/tree/main/proposals/csharp-6.0) ## C# proposals being worked on -- [Proposal] Required Properties #3630: https://github.com/dotnet/csharplang/issues/3630 -- Champion: Simplified parameter null validation code #2145: https://github.com/dotnet/csharplang/issues/2145 -- Proposal: Semi-Auto-Properties; field keyword #140: https://github.com/dotnet/csharplang/issues/140 -- Working Set (of proposals): https://github.com/dotnet/csharplang/milestone/19 +- [Champion: Simplified parameter null validation code #2145](https://github.com/dotnet/csharplang/issues/2145) +- [Proposal: Semi-Auto-Properties; field keyword #140](https://github.com/dotnet/csharplang/issues/140) +- [Working Set (of proposals)](https://github.com/dotnet/csharplang/milestone/19) -## Text types -- Strings (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/ -- Verbatim strings: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/verbatim -- String Interpolation in C# 10 and .NET 6: https://devblogs.microsoft.com/dotnet/string-interpolation-in-c-10-and-net-6/ -- Escape sequences: https://devblogs.microsoft.com/csharpfaq/what-character-escape-sequences-are-available/ - -## Number types -- Floating point numbers: https://ciechanow.ski/exposing-floating-point/ -- Why 0.1 does not exist in floating-point numbers: https://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/ -- American Patriot missile disaster: https://www.ima.umn.edu/~arnold/disasters/patriot.html +## Text and number types +- [Strings (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/) +- [Verbatim strings](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/verbatim) +- [String Interpolation in C# 10 and .NET 6](https://devblogs.microsoft.com/dotnet/string-interpolation-in-c-10-and-net-6/) +- [Escape sequences](https://learn.microsoft.com/en-us/archive/blogs/csharpfaq/what-character-escape-sequences-are-available) +- [Floating point numbers](https://ciechanow.ski/exposing-floating-point/) +- [Why 0.1 does not exist in floating-point numbers](https://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/) +- [American Patriot missile disaster](https://www.ima.umn.edu/~arnold/disasters/patriot.html) ## Console apps and formatting -- Main() and command-line arguments (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/main-and-command-args/ -- Console Class: https://docs.microsoft.com/en-us/dotnet/api/system.console -- Formatting types: https://docs.microsoft.com/en-us/dotnet/standard/base-types/formatting-types -- Composite Formatting: https://docs.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting +- [Console.ReadKey improvements in .NET 7](https://devblogs.microsoft.com/dotnet/console-readkey-improvements-in-net-7/) +- [Main() and command-line arguments (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/main-command-line) +- [Console Class](https://learn.microsoft.com/en-us/dotnet/api/system.console) +- [Formatting types](https://learn.microsoft.com/en-us/dotnet/standard/base-types/formatting-types) +- [Composite Formatting](https://learn.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting) ## Miscellaneous -- An Arabic programming language: https://youtu.be/dkO8cdwf6v8 +- [An Arabic programming language](https://www.youtube.com/watch?v=dkO8cdwf6v8) # Chapter 3 - Controlling Flow, Converting Types, and Handling Exceptions ## Operators -- C# operators: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/operators -- Truth tables: https://en.wikipedia.org/wiki/Truth_table -- Side effects: https://en.wikipedia.org/wiki/Side_effect_(computer_science) -- Bitwise and shift operators: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators -- Member access operators: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators +- [C# operators](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/) +- [Truth tables](https://en.wikipedia.org/wiki/Truth_table) +- [Side effects](https://en.wikipedia.org/wiki/Side_effect_(computer_science)) +- [Bitwise and shift operators](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators) +- [Member access operators](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators) ## Branching statements and pattern matching -- Statement keywords (C# Reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/statement-keywords -- Goto Fail bug: https://gotofail.com/ -- goto keyword and examples of when it can be used: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/goto -- Pattern matching: https://docs.microsoft.com/en-us/dotnet/csharp/pattern-matching -- Patterns and switch expressions: https://devblogs.microsoft.com/dotnet/do-more-with-patterns-in-c-8-0/ +- [Statement keywords (C# Reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/statement-keywords) +- [Goto Fail bug](https://gotofail.com/) +- [goto keyword and examples of when it can be used](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/jump-statements#the-goto-statement) +- [Pattern matching](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching) +- [Patterns and switch expressions](https://devblogs.microsoft.com/dotnet/do-more-with-patterns-in-c-8-0/) ## Casting, converting, rounding, and formatting data -- Taking control of rounding: https://docs.microsoft.com/en-us/dotnet/api/system.math.round -- Format codes for common scenarios: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings -- Casting and type conversions (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/types/casting-and-type-conversions +- [Taking control of rounding](https://learn.microsoft.com/en-us/dotnet/api/system.math.round) +- [Format codes for common scenarios](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings) +- [Casting and type conversions (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/types/casting-and-type-conversions) ## Handling exceptions -- 10 Exception handling best practices in C#: https://kumarashwinhubert.com/10-exception-handling-best-practices-in-csharp +- [Exceptions and Exception Handling](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/exceptions/) +- [Exception handling best practices in C#](https://kumarashwinhubert.com/10-exception-handling-best-practices-in-csharp) ## Coding problems in interviews -- Why can't programmers program? http://blog.codinghorror.com/why-cant-programmers-program/ -- FizzBuzz for programming interviews: http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ -- Make Better Hiring Decisions With Take-Home Coding Challenges: https://codesubmit.io -- The 30-minute guide to rocking your next coding interview: https://www.freecodecamp.org/news/coding-interviews-for-dummies-5e048933b82b/ -- C# Interview Questions: https://www.codingdojo.com/blog/c-interview-questions +- [Why can't programmers program?](http://blog.codinghorror.com/why-cant-programmers-program/) +- [FizzBuzz for programming interviews](http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/) +- [Make Better Hiring Decisions With Take-Home Coding Challenges](https://codesubmit.io) +- [The 30-minute guide to rocking your next coding interview](https://www.freecodecamp.org/news/coding-interviews-for-dummies-5e048933b82b/) +- [C# Interview Questions](https://www.codingdojo.com/blog/c-interview-questions) +- [Recursion versus interation](https://en.wikipedia.org/wiki/Recursion_(computer_science)#Recursion_versus_iteration) # Chapter 4 - Writing, Debugging, and Testing Functions -## Concepts -- Recursion versus interation: https://en.wikipedia.org/wiki/Recursion_(computer_science)#Recursion_versus_iteration - ## Debugging -- Visual Studio for Windows debugger documentation: https://docs.microsoft.com/en-us/visualstudio/debugger/ -- Visual Studio Code debugger: https://code.visualstudio.com/docs/editor/debugging -- Instructions for setting up the .NET debugger: https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md -- How to debug for absolute beginners: https://docs.microsoft.com/en-us/visualstudio/debugger/debugging-absolute-beginners +- [Visual Studio for Windows debugger documentation](https://learn.microsoft.com/en-us/visualstudio/debugger/) +- [Visual Studio Code debugger](https://code.visualstudio.com/docs/editor/debugging) +- [Instructions for setting up the .NET debugger](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md) +- [How to debug for absolute beginners](https://learn.microsoft.com/en-us/visualstudio/debugger/debugging-absolute-beginners) ## Instrumenting -- System.Diagnostics Namespace: https://docs.microsoft.com/en-us/dotnet/core/api/system.diagnostics -- Debug class: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.debug -- Trace listeners: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.tracelistener -- Console log formatting: https://docs.microsoft.com/en-us/dotnet/core/extensions/console-log-formatter -- Using .env in .NET: https://dusted.codes/dotenv-in-dotnet -- Announcing dotnet monitor in .NET 6: https://devblogs.microsoft.com/dotnet/announcing-dotnet-monitor-in-net-6/ +- [System.Diagnostics Namespace](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics) +- [Debug class](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debug) +- [Trace listeners](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.tracelistener) +- [Console log formatting](https://learn.microsoft.com/en-us/dotnet/core/extensions/console-log-formatter) +- [Using .env in .NET](https://dusted.codes/dotenv-in-dotnet) +- [Announcing dotnet monitor in .NET 6](https://devblogs.microsoft.com/dotnet/announcing-dotnet-monitor-in-net-6/) ## Testing -- Test Driven Development (TDD): https://en.wikipedia.org/wiki/Test-driven_development -- Unit testing in .NET: https://docs.microsoft.com/en-us/dotnet/core/testing/ -- xUnit.net: http://xunit.github.io/ +- [Test Driven Development (TDD)](https://en.wikipedia.org/wiki/Test-driven_development) +- [Unit testing in .NET](https://learn.microsoft.com/en-us/dotnet/core/testing/) +- [xUnit.net](https://xunit.net/) # Chapter 5 - Building Your Own Types with Object-Oriented Programming ## Fields -- Fields (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/classes-and-structs/fields -- Access modifiers (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/language-reference/keywords/access-modifiers -- Enumeration types (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum -- required modifier (C# Reference): https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/required +- [Fields (C# programming guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/fields) +- [Access modifiers (C# programming guide)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/access-modifiers) +- [Enumeration types (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/enum) +- [required modifier (C# Reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/required) ## Methods -- Constructors (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/classes-and-structs/constructors -- Methods (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/methods -- Deconstruct method: https://docs.microsoft.com/en-us/dotnet/csharp/deconstruct -- params keyword: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/params -- ref keyword: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/ref-returns +- [Constructors (C# programming guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/constructors) +- [Methods in C#)](https://learn.microsoft.com/en-us/dotnet/csharp/methods) +- [Deconstructing tuples and other types](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/deconstruct) +- [params keyword](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/params) +- [out parameter modifier (C# Reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out-parameter-modifier) +- [ref (C# Reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref) ## Properties -- Encapsulation of fields using properties: https://stackoverflow.com/questions/1568091/why-use-getters-and-setters-accessors -- Properties (C# programming guide): https://docs.microsoft.com/en-us/dotnet/articles/csharp/properties -- Using Tuples in C# to Initialize Properties in the Constructor and to Deconstruct Your Object: https://www.thomasclaudiushuber.com/2021/03/25/csharp-using-tuples-to-initialize-properties/ +- [Encapsulation of fields using properties](https://stackoverflow.com/questions/1568091/why-use-getters-and-setters-accessors) +- [Properties (C# programming guide)](https://learn.microsoft.com/en-us/dotnet/articles/csharp/properties) +- [Using Tuples in C# to Initialize Properties in the Constructor and to Deconstruct Your Object](https://www.thomasclaudiushuber.com/2021/03/25/csharp-using-tuples-to-initialize-properties/) -## Pattern matching -- Pattern matching tutorial: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/pattern-matching - -## Records -- Comparing struct and class records: https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#record-structs - -## Miscellaneous -- How to calculate someone's age: https://stackoverflow.com/questions/9/how-do-i-calculate-someones-age-in-c +## Pattern matching, Records, and Miscellaneous +- [Tutorial: Use pattern matching to build type-driven and data-driven algorithms](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/tutorials/pattern-matching) +- [Comparing struct and class records](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#record-structs) +- [How do I calculate someone's age based on a DateTime type birthday?](https://stackoverflow.com/questions/9/how-do-i-calculate-someones-age-based-on-a-datetime-type-birthday) # Chapter 6 - Implementing Interfaces and Inheriting Classes -## Operator overloading -- Operator (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading -- Symbols that can be overloaded: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/overloadable-operators - -## Delegates and events -- Delegates: https://docs.microsoft.com/en-us/dotnet/standard/delegates-lambdas -- Events (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/event -- Custom EventArgs: https://docs.microsoft.com/en-us/dotnet/standard/events/how-to-raise-and-consume-events +## Operator overloading, delegates and events +- [Operator (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading) +- [Symbols that can be overloaded](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/overloadable-operators) +- [Delegates](https://learn.microsoft.com/en-us/dotnet/standard/delegates-lambdas) +- [Events (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/event) +- [How to: Raise and Consume Events](https://learn.microsoft.com/en-us/dotnet/standard/events/how-to-raise-and-consume-events) ## Interfaces and generics -- Interfaces: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/interfaces -- Explicit interface implementations: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation -- Design decisions for default interface implementations: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/default-interface-methods -- Default interface implementations tutorial: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/default-interface-members-versions -- Generics (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/generics +- [Interfaces](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/interfaces) +- [Explicit interface implementations](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation) +- [Design decisions for default interface implementations](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/default-interface-methods) +- [Default interface implementations tutorial](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/default-interface-methods-versions) +- [Generics (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/generics) ## Memory, reference and value types -- Reference Types (C# Reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/reference-types -- Value Types (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/value-types -- Choosing Between Class and Struct: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/choosing-between-class-and-struct -- Conversation about the .NET type system: https://devblogs.microsoft.com/dotnet/conversation-about-the-net-type-system/ -- Technical details of the internal memory layout of types in .NET: https://adamsitnik.com/Value-Types-vs-Reference-Types/ -- Garbage collection: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/ -- Finalizers (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/destructors -- Finalizers and disposing: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/unmanaged -- IDisposable interface: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/using-objects +- [Reference Types (C# Reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/reference-types) +- [Value Types (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/value-types) +- [Choosing Between Class and Struct](https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/choosing-between-class-and-struct) +- [Conversation about the .NET type system](https://devblogs.microsoft.com/dotnet/conversation-about-the-net-type-system/) +- [Technical details of the internal memory layout of types in .NET](https://adamsitnik.com/Value-Types-vs-Reference-Types/) +- [Garbage collection](https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/) +- [Finalizers (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/destructors) +- [Finalizers and disposing](https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/unmanaged) +- [IDisposable interface:](https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/using-objects) ## Null and nullability -- The inventor of null, Sir Charles Antony Richard Hoare, admits his mistake in a recorded hour-long talk: https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare -- The tweet about achieving 80% annotations in .NET 5: https://twitter.com/terrajobst/status/1296566363880742917 -- Video to learn how to get rid of null reference exceptions forever: https://channel9.msdn.com/Shows/On-NET/This-is-how-you-get-rid-of-null-reference-exceptions-forever -- Nullable value types (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-value-types -- Nullable reference types: https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references -- Null-conditional operator: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-conditional-operators -- Null-coalescing operator: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-coalescing-operator +- [The inventor of null, Sir Charles Antony Richard Hoare, admits his mistake in a recorded hour-long talk](https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare) +- [The tweet about achieving 80% annotations in .NET 5](https://twitter.com/terrajobst/status/1296566363880742917) +- [Video to learn how to get rid of null reference exceptions forever](https://learn.microsoft.com/en-us/shows/on-net/this-is-how-you-get-rid-of-null-reference-exceptions-forever) +- [Nullable value types (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-value-types) +- [Nullable reference types](https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references) +- [Null-conditional operator](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators#null-conditional-operators--and-) +- [Null-coalescing operator](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-coalescing-operator) ## Inheritance -- Inheritance (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/inheritance +- [Inheritance (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/object-oriented/inheritance) # Chapter 7 - Packaging and Distributing .NET Types -## .NET Standard -- .NET Standard 2.1 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-standard-2-1/ -- .NET Standard 2.1 APIs and a comparison with .NET Standard 2.0: https://github.com/dotnet/standard/blob/master/docs/versions/netstandard2.1.md -- Future of .NET Standard: https://devblogs.microsoft.com/dotnet/the-future-of-net-standard/ -- From .NET Standard to .NET 5: https://www.codemag.com/article/2010022 - ## .NET versions -- .NET Core 1.0 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-1-0/ -- .NET Core 1.1 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-1-1/ -- .NET Core 2.0 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-2-0/ -- .NET Core 2.2 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-2-2/ -- .NET Core 3.0 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/ -- .NET Core 3.1 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-core-3-1/ -- .NET 5 announcement: https://devblogs.microsoft.com/dotnet/announcing-net-5-0 -- Performance improvements in .NET 5: https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-5/ -- .NET 5.0 Runtime Highlights: https://codemag.com/Article/2010092/.NET-5.0-Runtime-Highlights -- Announcing .NET 6 — The Fastest .NET Yet: https://devblogs.microsoft.com/dotnet/announcing-net-6/ +The official announcement links are useful because they describe the most important new features in each release. + +- [Announcing .NET 7](https://devblogs.microsoft.com/dotnet/announcing-net-7/) +- [Announcing .NET 6 — The Fastest .NET Yet](https://devblogs.microsoft.com/dotnet/announcing-net-6/) +- [.NET 5 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-5-0) +- [.NET 5.0 Runtime Highlights](https://codemag.com/Article/2010092/.NET-5.0-Runtime-Highlights) +- [.NET Core 3.1 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-3-1/) +- [.NET Core 3.0 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/) +- [.NET Core 2.2 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-2-2/) +- [.NET Core 2.0 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-2-0/) +- [.NET Core 1.1 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-1-1/) +- [.NET Core 1.0 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-core-1-0/) + +## .NET Standard +- [.NET Standard 2.1 announcement](https://devblogs.microsoft.com/dotnet/announcing-net-standard-2-1/) +- [Future of .NET Standard](https://devblogs.microsoft.com/dotnet/the-future-of-net-standard/) +- [From .NET Standard to .NET 5](https://www.codemag.com/article/2010022) ## .NET API, packages and frameworks -- Search and browse all .NET APIs: https://docs.microsoft.com/en-us/dotnet/api/ -- CoreFX README.md: https://github.com/dotnet/corefx/blob/master/Documentation/README.md -- .NET 6.0 TFMs: https://github.com/dotnet/designs/pull/174/files -- How packages and their APIs relate to frameworks: https://gist.github.com/davidfowl/8939f305567e1755412d6dc0b8baf1b7 -- Example .NET package and the frameworks it supports: https://www.nuget.org/packages/System.IO.FileSystem/ -- Currently supported Runtime Identifier (RID) values: https://docs.microsoft.com/en-us/dotnet/articles/core/rid-catalog -- System.IO.FileSystem package details: https://www.nuget.org/packages/System.IO.FileSystem/ +- [Search and browse all .NET APIs](https://learn.microsoft.com/en-us/dotnet/api/) +- [CoreFX README.md](https://github.com/dotnet/corefx/blob/master/Documentation/README.md) +- [How packages and their APIs relate to frameworks](https://gist.github.com/davidfowl/8939f305567e1755412d6dc0b8baf1b7) +- [Currently supported Runtime Identifier (RID) values](https://learn.microsoft.com/en-us/dotnet/articles/core/rid-catalog) +- [System.IO.FileSystem package details](https://www.nuget.org/packages/System.IO.FileSystem/) ## Roslyn, SDKs, and project templates -- Roslyn compiler: https://github.com/dotnet/roslyn -- .NET project SDKs: https://docs.microsoft.com/en-us/dotnet/core/project-sdk/overview -- global.json overview: https://docs.microsoft.com/en-us/dotnet/core/tools/global-json -- Additional `dotnet new` templates: https://dotnetnew.azurewebsites.net/ -- Tutorial: Create an item template: https://docs.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template +- [Roslyn compiler](https://github.com/dotnet/roslyn/blob/main/README.md) +- [.NET project SDKs](https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview) +- [global.json overview](https://learn.microsoft.com/en-us/dotnet/core/tools/global-json) +- [Additional `dotnet new` templates](https://dotnetnew.azurewebsites.net/) +- [Tutorial: Create an item template](https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template) ## Packaging and publishing -- PDB files: https://www.wintellect.com/pdb-files-what-every-developer-must-know/ -- Single-file app issue: https://github.com/dotnet/runtime/issues/36590 -- App trimming: https://devblogs.microsoft.com/dotnet/app-trimming-in-net-5/ -- The PackageReference format: https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets -- NuGet packages: https://www.nuget.org/packages -- Announcing NuGet 6.0: https://devblogs.microsoft.com/nuget/announcing-nuget-6/ -- .NET Core application publishing overview: https://docs.microsoft.com/en-us/dotnet/core/deploying/ -- How to Deploy .NET apps to Raspberry Pi: https://www.ryadel.com/en/deploy-net-apps-raspberry-pi/ -- How to solve a circular reference using an interface: https://stackoverflow.com/questions/6928387/how-to-solve-circular-reference -- Semantic versioning: http://semver.org +- [PDB files](https://www.wintellect.com/pdb-files-what-every-developer-must-know/) +- [The PackageReference format](https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets) +- [NuGet packages](https://www.nuget.org/packages) +- [Announcing NuGet 6.0](https://devblogs.microsoft.com/nuget/announcing-nuget-6/) +- [.NET Core application publishing overview](https://learn.microsoft.com/en-us/dotnet/core/deploying/) +- [How to Deploy .NET apps to Raspberry Pi](https://www.ryadel.com/en/deploy-net-apps-raspberry-pi/) +- [How to solve a circular reference using an interface](https://stackoverflow.com/questions/6928387/how-to-solve-circular-reference) +- [Semantic versioning](http://semver.org) ## Decompiling .NET -- Is it possible to “decompile” a Windows .exe? Or at least view the Assembly? https://stackoverflow.com/questions/273145/is-it-possible-to-decompile-a-windows-exe-or-at-least-view-the-assembly -- IDA Freeware Download Page: https://www.hex-rays.com/products/ida/support/download_freeware/ +- [Is it possible to “decompile” a Windows .exe? Or at least view the Assembly?](https://stackoverflow.com/questions/273145/is-it-possible-to-decompile-a-windows-exe-or-at-least-view-the-assembly) +- [IDA Freeware Download Page](https://www.hex-rays.com/ida-free/#download) ## Porting from .NET Framework to modern .NET -- Overview of porting from .NET Framework to .NET Core: https://docs.microsoft.com/en-us/dotnet/core/porting/ -- What .NET Developers ought to know: https://www.hanselman.com/blog/WhatNETDevelopersOughtToKnowToStartIn2017.aspx -- Introducing the .NET Upgrade Assistant Preview: https://devblogs.microsoft.com/dotnet/introducing-the-net-upgrade-assistant-preview/ -- .NET Upgrade Assistant: https://dotnet.microsoft.com/platform/upgrade-assistant -- Discover cross-platform issues: https://docs.microsoft.com/en-us/dotnet/standard/analyzers/api-analyzer#discover-cross-platform-issues -- Amazon Porting Assistant for .NET: https://aws.amazon.com/porting-assistant-dotnet/ +- [Overview of porting from .NET Framework to .NET Core](https://learn.microsoft.com/en-us/dotnet/core/porting/) +- [What .NET Developers ought to know](https://www.hanselman.com/blog/what-net-developers-ought-to-know-to-start-in-2017) +- [Introducing the .NET Upgrade Assistant Preview](https://devblogs.microsoft.com/dotnet/introducing-the-net-upgrade-assistant-preview/) +- [.NET Upgrade Assistant](https://dotnet.microsoft.com/en-us/platform/upgrade-assistant) +- [Discover cross-platform issues](https://learn.microsoft.com/en-us/dotnet/standard/analyzers/api-analyzer#discover-cross-platform-issues) +- [Amazon Porting Assistant for .NET](https://aws.amazon.com/porting-assistant-dotnet/) ## Preview features -- Preview Features: https://github.com/dotnet/designs/blob/main/accepted/2021/preview-features/preview-features.md +- [Preview Features](https://github.com/dotnet/designs/blob/main/accepted/2021/preview-features/preview-features.md) # Chapter 8 - Working with Common .NET Types ## Working with numbers -- Numerics types: https://docs.microsoft.com/en-us/dotnet/standard/numerics -- The Half type: https://devblogs.microsoft.com/dotnet/introducing-the-half-type/ -- nint and nuint types (C# reference): https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nint-nuint -- nint Struct: https://docs.microsoft.com/en-us/dotnet/api/system.nint -- Names for large numbers: https://en.wikipedia.org/wiki/Names_of_large_numbers +- [Numerics types](https://learn.microsoft.com/en-us/dotnet/standard/numerics) +- [The Half type](https://devblogs.microsoft.com/dotnet/introducing-the-half-type/) +- [nint and nuint types (C# reference)](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types#native-sized-integers) +- [nint Struct](https://learn.microsoft.com/en-us/dotnet/api/system.nint) +- [Names for large numbers](https://en.wikipedia.org/wiki/Names_of_large_numbers) ## Working with text and regular expressions -- String Class: https://docs.microsoft.com/en-us/dotnet/api/system.string -- Regex Class: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex -- Regular expressions in .NET: https://docs.microsoft.com/en-us/dotnet/articles/standard/base-types/regular-expressions -- Regular Expression Language – Quick Reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference -- Unicode in regular expressions: https://www.regular-expressions.info/unicode.html -- Using a regular expression to split a comma-separated string: https://stackoverflow.com/questions/18144431/regex-to-split-a-csv -- To specify a Unicode character, use `\u` followed by four characters specifying the number of the character. For example, `\u00c0` is the À character: https://www.regular-expressions.info -- Performance improvements in .NET 5: https://devblogs.microsoft.com/dotnet/regex-performance-improvements-in-net-5/ - -## Dates and times -- Date, Time, and Time Zone Enhancements in .NET 6: https://devblogs.microsoft.com/dotnet/date-time-and-time-zone-enhancements-in-net-6/ -- .NET 6: Date and Time Structures: https://www.infoq.com/news/2021/04/Net6-Date-Time/ -- Noda Time: A better date and time API for .NET: https://nodatime.org/ +- [String Class](https://learn.microsoft.com/en-us/dotnet/api/system.string) +- [Regex Class](https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex) +- [.NET regular expressions](https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expressions) +- [Regular Expression Language – Quick Reference](https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference) +- [Unicode in regular expressions](https://www.regular-expressions.info/unicode.html) +- [Using a regular expression to split a comma-separated string](https://stackoverflow.com/questions/18144431/regex-to-split-a-csv) +- [To specify a Unicode character, use `\u` followed by four characters specifying the number of the character. For example, `\u00c0` is the À character](https://www.regular-expressions.info) ## Collections -- Collections (C# and Visual Basic): https://docs.microsoft.com/en-us/dotnet/api/system.collections -- Collections: https://docs.microsoft.com/en-us/dotnet/standard/collections -- Concurrent collections: https://docs.microsoft.com/en-us/dotnet/api/system.collections.concurrent -- What types should I use to pass collections in C#? https://markheath.net/post/passing-collections-csharp -- On Abstractions and For-Each Performance in C#: https://www.infoq.com/articles/For-Each-Performance/ +- [Collections and Data Structures](https://learn.microsoft.com/en-us/dotnet/standard/collections) +- [System.Collections Namespace)](https://learn.microsoft.com/en-us/dotnet/api/system.collections) +- [System.Collections.Concurrent Namespace](https://learn.microsoft.com/en-us/dotnet/api/system.collections.concurrent) +- [What types should I use to pass collections in C#?](https://markheath.net/post/passing-collections-csharp) +- [On Abstractions and For-Each Performance in C#](https://www.infoq.com/articles/For-Each-Performance/) ## Spans -- Span: https://docs.microsoft.com/en-us/dotnet/api/system.span-1 -- How spans work internally: https://docs.microsoft.com/en-us/archive/msdn-magazine/2018/january/csharp-all-about-span-exploring-a-new-net-mainstay +- [Span](https://learn.microsoft.com/en-us/dotnet/api/system.span-1) +- [How spans work internally](https://learn.microsoft.com/en-us/archive/msdn-magazine/2018/january/csharp-all-about-span-exploring-a-new-net-mainstay) ## Networking -- .NET 6 Networking Improvements: https://devblogs.microsoft.com/dotnet/dotnet-6-networking-improvements/ - -## Assemblies and reflection -- .NET API Reference: https://docs.microsoft.com/en-us/dotnet/api/ -- Compiler-generated display class: http://stackoverflow.com/a/2509524/55847 -- Dynamically load assemblies that are not currently referenced: https://docs.microsoft.com/en-us/dotnet/standard/assembly/unloadability-howto -- Dynamically execute code: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodbase.invoke -- Dynamically generate new code and assemblies: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.assemblybuilder -- Extending Metadata Using Attributes: https://docs.microsoft.com/en-us/dotnet/standard/attributes/ - -## Working with images -- ImageSharp: https://github.com/SixLabors/ImageSharp - -## Internationalization -- Globalizing and localizing .NET applications: https://docs.microsoft.com/en-us/dotnet/standard/globalization-localization/ -- Time zones: https://devblogs.microsoft.com/dotnet/cross-platform-time-zones-with-net-core/ +- [.NET 6 Networking Improvements](https://devblogs.microsoft.com/dotnet/dotnet-6-networking-improvements/) # Chapter 9 - Working with Files, Streams, and Serialization -## File system, encoding, and streams -- File System and the Registry (C# Programming Guide): https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/ -- Character encoding in .NET: https://docs.microsoft.com/en-us/dotnet/articles/standard/base-types/character-encoding -- Async streams tutorial: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/generate-consume-asynchronous-stream -- How pipelines help with I/O performance: https://devblogs.microsoft.com/dotnet/system-io-pipelines-high-performance-io-in-net/ - -## Serialization -- Serialization (C#): https://docs.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/concepts/serialization/ -- Serializing to Files, TextWriters, and XmlWriters: https://docs.microsoft.com/en-us/dotnet/standard/linq/serialize-files-textwriters-xmlwriters +## File system, encoding, streams, and serialization +- [File System and the Registry (C# Programming Guide)](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/) +- [Character encoding in .NET](https://learn.microsoft.com/en-us/dotnet/articles/standard/base-types/character-encoding) +- [How pipelines help with I/O performance](https://devblogs.microsoft.com/dotnet/system-io-pipelines-high-performance-io-in-net/) +- [Serialization (C#)](https://learn.microsoft.com/en-us/dotnet/articles/csharp/programming-guide/concepts/serialization/) +- [Serializing to Files, TextWriters, and XmlWriters](https://learn.microsoft.com/en-us/dotnet/standard/linq/serialize-files-textwriters-xmlwriters) ## JSON -- Newtonsoft Json.NET: https://www.newtonsoft.com/json -- System.Text.Json APIs: https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-apis/ -- Issues solved by the new JSON APIs, including JamesNK's comments: https://github.com/dotnet/corefx/issues/33115 -- How to migrate from Newtonsoft.Json to System.Text.Json: https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to -- What’s next for System.Text.Json? https://devblogs.microsoft.com/dotnet/whats-next-for-system-text-json/ +- [Newtonsoft Json.NET](https://www.newtonsoft.com/json) +- [System.Text.Json APIs](https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-apis/) +- [What’s next for System.Text.Json?](https://devblogs.microsoft.com/dotnet/whats-next-for-system-text-json/) +- [What’s new in System.Text.Json in .NET 7](https://devblogs.microsoft.com/dotnet/system-text-json-in-dotnet-7/) +- [Issues solved by the new JSON APIs, including JamesNK's comments](https://github.com/dotnet/corefx/issues/33115) +- [How to migrate from Newtonsoft.Json to System.Text.Json](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to) # Chapter 10 - Working with Data Using Entity Framework Core ## Legacy EF 6 -- Entity Framework 6.3 and its .NET Core 3.0 and later support: https://devblogs.microsoft.com/dotnet/announcing-ef-core-3-0-and-ef-6-3-general-availability/ +- [Entity Framework 6.3 and its .NET Core 3.0 and later support](https://devblogs.microsoft.com/dotnet/announcing-ef-core-3-0-and-ef-6-3-general-availability/) ## EF Core -- EF Core documentation: https://docs.microsoft.com/en-us/ef/core/ -- New features in EF Core 7: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew -- New features in EF Core 6: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-6.0/whatsnew -- New features in EF Core 5: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew -- Plans for Entity Framework Core 6.0 revealed as Microsoft admits it is unlikely to match Dapper for performance: https://www.theregister.com/2021/01/19/entity_framework_core_6/ -- Entity Framework Community Standup - Performance Tuning an EF Core App: https://www.youtube.com/watch?v=VgNFFEqwZPU +- [EF Core documentation](https://learn.microsoft.com/en-us/ef/core/) +- [Announcing Entity Framework Core 7 RC2: JSON Columns](https://devblogs.microsoft.com/dotnet/announcing-ef7-release-candidate-2/) +- [New features in EF Core 7](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew) +- [New features in EF Core 6](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-6.0/whatsnew) +- [New features in EF Core 5](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew) +- [New features in Entity Framework Core 3.x](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.x/) +- [Plans for Entity Framework Core 6.0 revealed as Microsoft admits it is unlikely to match Dapper for performance](https://www.theregister.com/2021/01/19/entity_framework_core_6/) +- [Entity Framework Community Standup - Performance Tuning an EF Core App](https://www.youtube.com/watch?v=VgNFFEqwZPU) ## EF Core database providers -- EF Core database providers: https://docs.microsoft.com/en-us/ef/core/providers/ -- Devart database providers: https://www.devart.com/dotconnect/entityframework.html -- Check the latest NuGet package version: https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Sqlite/ -- Document Database Providers for Entity Framework Core: https://github.com/BlueshiftSoftware/EntityFrameworkCore +- [EF Core database providers](https://learn.microsoft.com/en-us/ef/core/providers/) +- [Devart database providers](https://www.devart.com/dotconnect/entityframework.html) +- [Document Database Providers for Entity Framework Core](https://github.com/BlueshiftSoftware/EntityFrameworkCore/blob/develop/README.md) ## SQLite -- Download SQLite: https://www.sqlite.org/download.html -- SQL statements supported by SQLite: https://sqlite.org/lang.html -- Download SQLiteStudio: http://sqlitestudio.pl +- [Download SQLite](https://www.sqlite.org/download.html) +- [SQL statements supported by SQLite](https://sqlite.org/lang.html) +- [Download SQLiteStudio](http://sqlitestudio.pl) +- [Check the latest EF Core Sqlite NuGet package version](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Sqlite/) ## Microsoft SQL Server -- SQL Server downloads: https://www.microsoft.com/en-us/sql-server/sql-server-downloads -- Use Visual Studio Code to create and run Transact-SQL scripts: https://docs.microsoft.com/en-us/sql/tools/visual-studio-code/sql-server-develop-use-vscode -- .NET Interactive with SQL!| .NET Notebooks in Visual Studio Code: https://devblogs.microsoft.com/dotnet/net-interactive-with-sql-net-notebooks-in-visual-studio-code/ +- [SQL Server downloads](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) +- [Use Visual Studio Code to create and run Transact-SQL scripts](https://learn.microsoft.com/en-us/sql/tools/visual-studio-code/sql-server-develop-use-vscode) +- [.NET Interactive with SQL!| .NET Notebooks in Visual Studio Code](https://devblogs.microsoft.com/dotnet/net-interactive-with-sql-net-notebooks-in-visual-studio-code/) ## EF Core models -- EF Core model conventions: https://docs.microsoft.com/en-us/ef/core/modeling/ -- Data seeding: https://docs.microsoft.com/en-us/ef/core/modeling/data-seeding -- Humanizer library: http://humanizr.net -- Scaffolding: https://docs.microsoft.com/en-us/ef/core/managing-schemas/scaffolding?tabs=dotnet-core-cli -- Deep Dive into Many-to-Many: A Tour of EF Core 5.0: https://channel9.msdn.com/Shows/On-NET/Deep-Dive-into-Many-to-Many-A-Tour-of-EF-Core-50-pt-2 -- Naming Conventions for Entity Framework Core Tables and Columns: https://github.com/efcore/EFCore.NamingConventions -- Table-per-concrete-type (TPC) inheritance mapping: https://learn.microsoft.com/en-gb/ef/core/what-is-new/ef-core-7.0/whatsnew#table-per-concrete-type-tpc-inheritance-mapping +- [EF Core model conventions](https://learn.microsoft.com/en-us/ef/core/modeling/) +- [Data seeding](https://learn.microsoft.com/en-us/ef/core/modeling/data-seeding) +- [Humanizer library](http://humanizr.net) +- [Scaffolding](https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding?tabs=dotnet-core-cli) +- [Deep Dive into Many-to-Many: A Tour of EF Core 5.0](https://channel9.msdn.com/Shows/On-NET/Deep-Dive-into-Many-to-Many-A-Tour-of-EF-Core-50-pt-2) +- [Naming Conventions for Entity Framework Core Tables and Columns](https://github.com/efcore/EFCore.NamingConventions) +- [Table-per-concrete-type (TPC) inheritance mapping](https://learn.microsoft.com/en-gb/ef/core/what-is-new/ef-core-7.0/whatsnew#table-per-concrete-type-tpc-inheritance-mapping) ## EF Core querying and manipulating -- Filtered include: https://docs.microsoft.com/en-us/ef/core/querying/related-data/eager#filtered-include -- Simple logging: https://docs.microsoft.com/en-us/ef/core/logging-events-diagnostics/simple-logging -- Query tags: https://docs.microsoft.com/en-us/ef/core/querying/tags -- Loading patterns: https://docs.microsoft.com/en-us/ef/core/querying/related-data -- Pooling database contexts: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-2.0#dbcontext-pooling +- [Filtered include](https://learn.microsoft.com/en-us/ef/core/querying/related-data/eager#filtered-include) +- [Simple logging](https://learn.microsoft.com/en-us/ef/core/logging-events-diagnostics/simple-logging) +- [Query tags](https://learn.microsoft.com/en-us/ef/core/querying/tags) +- [Loading patterns](https://learn.microsoft.com/en-us/ef/core/querying/related-data) +- [Pooling database contexts](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-2.0#dbcontext-pooling) # Chapter 11 - Querying and Manipulating Data Using LINQ ## LINQ concepts -- Expression trees: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/expression-trees/ -- LINQ comprehension syntax: https://stackoverflow.com/questions/6229187/linq-why-is-it-called-comprehension-syntax -- LINQ in C#: https://docs.microsoft.com/en-us/dotnet/csharp/linq/linq-in-csharp -- New LINQ extensions in .NET 6 and benchmarks: https://blog.elmah.io/new-linq-extensions-in-net-6-and-benchmarks/ +- [Expression trees](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/expression-trees/) +- [LINQ comprehension syntax](https://stackoverflow.com/questions/6229187/linq-why-is-it-called-comprehension-syntax) +- [LINQ in C#](https://learn.microsoft.com/en-us/dotnet/csharp/linq/linq-in-csharp) +- [New LINQ extensions in .NET 6 and benchmarks](https://blog.elmah.io/new-linq-extensions-in-net-6-and-benchmarks/) ## LINQ providers -- EF Core LINQ queries no longer evaluated at client: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.x/breaking-changes#linq-queries-are-no-longer-evaluated-on-the-client -- Parallel LINQ (PLINQ): https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq -- LINQ to XML Overview (C#): https://docs.microsoft.com/en-gb/dotnet/csharp/programming-guide/concepts/linq/linq-to-xml-overview +- [EF Core LINQ queries no longer evaluated at client](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.x/breaking-changes#linq-queries-are-no-longer-evaluated-on-the-client) +- [Parallel LINQ (PLINQ)](https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq) +- [LINQ to XML Overview (C#)](https://learn.microsoft.com/en-us/dotnet/standard/linq/linq-xml-overview) ## LINQ samples and tools -- 101 LINQ Samples: https://docs.microsoft.com/en-us/samples/dotnet/try-samples/101-linq-samples/ -- LINQPad: https://www.linqpad.net/ +- [101 LINQ Samples](https://learn.microsoft.com/en-us/samples/dotnet/try-samples/101-linq-samples/) +- [LINQPad](https://www.linqpad.net/) # Chapter 12 - Introducing Web Development Using ASP.NET Core ## .NET apps -- .NET Application Architecture Guidance: https://www.microsoft.com/net/learn/architecture +- [.NET Architecture Guides](https://dotnet.microsoft.com/en-us/learn/dotnet/architecture-guides) ## .NET Content Management Systems -- Piranha CMS: https://piranhacms.org/ -- Orchard Core: http://www.orchardcore.net/ -- Optimizely CMS Developer Guide: https://world.optimizely.com/documentation/developer-guides/CMS/ -- Umbraco CMS: https://umbraco.com/products/umbraco-cms/migrating-umbraco-to-net-core/ +- [Piranha CMS](https://piranhacms.org/) +- [Orchard Core](http://orchardcore.net/) +- [Umbraco CMS](https://umbraco.com/products/umbraco-cms/umbraco-9/) +- [Optimizely Comtent Cloud (CMS 12)](https://docs.developers.optimizely.com/content-cloud) + +## General web development +- [Responsive Web Design with HTML5 and CSS - Third Edition](https://www.packtpub.com/product/responsive-web-design-with-html5-and-css-third-edition/9781839211560) +- [Bootstrap](https://getbootstrap.com/) +- [WebSocket](https://en.wikipedia.org/wiki/WebSocket) +- [MessagePack](https://msgpack.org) +- [WebAssembly](https://webassembly.org) +- [TypeScript](https://www.typescriptlang.org) +- [Content Delivery Network (CDN)](https://en.wikipedia.org/wiki/Content_delivery_network) ## ASP.NET versions and features -- ASP.NET Core 1.0 announcement: https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-1-0/ -- ASP.NET Core 1.1 announcement: https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-1-1/ -- ASP.NET Core 2.0 announcement: https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-2-0/ -- ASP.NET Core 2.1 announcement: https://devblogs.microsoft.com/aspnet/asp-net-core-2-1-0-now-available/ -- ASP.NET Core 2.2 announcement: https://devblogs.microsoft.com/aspnet/asp-net-core-2-2-available-today/ -- ASP.NET Core 3.0 announcement: https://devblogs.microsoft.com/aspnet/a-first-look-at-changes-coming-in-asp-net-core-3-0/ -- ASP.NET Core 3.1 announcement: https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-core-3-1/ -- Blazor WebAssembly announcement: https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-now-available/ -- ASP.NET Core 5.0 announcement: https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-in-net-5/ +The official announcement links are useful because they describe the most important new features in each release. -## Web development technologies -- WebSocket: https://en.wikipedia.org/wiki/WebSocket -- MessagePack: https://msgpack.org -- WebAssembly: https://webassembly.org -- TypeScript: https://www.typescriptlang.org +- [ASP.NET Core 7.0 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-in-net-7/) +- [ASP.NET Core 6.0 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-in-net-6/) +- [ASP.NET Core 5.0 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-in-net-5/) +- [Blazor WebAssembly announcement](https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-now-available/) +- [ASP.NET Core 3.1 announcement](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-core-3-1/) +- [ASP.NET Core 3.0 announcement](https://devblogs.microsoft.com/aspnet/a-first-look-at-changes-coming-in-asp-net-core-3-0/) +- [ASP.NET Core 2.2 announcement](https://devblogs.microsoft.com/aspnet/asp-net-core-2-2-available-today/) +- [ASP.NET Core 2.1 announcement](https://devblogs.microsoft.com/aspnet/asp-net-core-2-1-0-now-available/) +- [ASP.NET Core 2.0 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-2-0/) +- [ASP.NET Core 1.1 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-1-1/) +- [ASP.NET Core 1.0 announcement](https://devblogs.microsoft.com/aspnet/announcing-asp-net-core-1-0/) # Chapter 13 - Building Websites Using ASP.NET Core Razor Pages -## General web development -- HTML5 and CSS3: Building Responsive Websites: https://www.packtpub.com/producthtml5-and-css3-building-responsive-websites/9781787124813h -- Kestrel web server: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel -- Free TLS/SSL certificates: https://letsencrypt.org -- ASP.NET Core hosting environments: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments -- Content Delivery Network (CDN): https://en.wikipedia.org/wiki/Content_delivery_network -- Bootstrap: https://getbootstrap.com/ -- Compact Folders feature: https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#compact-folders-in-explorer - ## ASP.NET Core -- Announcing ASP.NET Core in .NET 6: https://devblogs.microsoft.com/dotnet/announcing-asp-net-core-in-net-6/ -- ASP.NET Core fundamentals: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/ -- Static files in ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files -- HttpContext class: https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext +- [ASP.NET Core fundamentals](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/) +- [Static files in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files) +- [HttpContext class](https://learn.microsoft.com/en-us/dotnet/api/system.web.httpcontext) +- [Kestrel web server](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel) +- [ASP.NET Core hosting environments](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments) +- [Free TLS/SSL certificates](https://letsencrypt.org) ## Razor Pages and layouts -- Introducing the new Razor editor in Visual Studio 2022: https://devblogs.microsoft.com/visualstudio/introducing-the-new-razor-editor-in-visual-studio-2022/ -- Introduction to Razor Pages in ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ -- Razor syntax reference for ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor -- Layout in ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/layout -- Tag Helpers in ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/intro -- ASP.NET Core Razor Pages with EF Core: https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro -- Registering a database context for use as a dependency service: https://docs.microsoft.com/en-us/ef/core/miscellaneous/configuring-dbcontext#using-dbcontext-with-dependency-injection -- The `` tag helper: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/partial-tag-helper +- [Introducing the new Razor editor in Visual Studio 2022](https://devblogs.microsoft.com/visualstudio/introducing-the-new-razor-editor-in-visual-studio-2022/) +- [Introduction to Razor Pages in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/razor-pages/) +- [Razor syntax reference for ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor) +- [Layout in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/layout) +- [Tag Helpers in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/intro) +- [ASP.NET Core Razor Pages with EF Core](https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro) +- [DbContext Lifetime, Configuration, and Initialization](https://learn.microsoft.com/en-us/ef/core/dbcontext-configuration/#dbcontext-in-dependency-injection-for-aspnet-core) +- [The `` tag helper](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/partial-tag-helper) +- [Visual Studio Code Compact Folders feature](https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#compact-folders-in-explorer) ## Endpoint routing -- Simple examples of Run, Map, and Use: https://www.vaughanreid.com/2020/05/using-in-line-middleware-in-asp-net-core/ -- Automatically visualize your endpoints: https://andrewlock.net/visualizing-asp-net-core-endpoints-using-graphvizonline-and-the-dot-language/ -- Configuring the HTTP pipeline with middleware: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware -- DEEP DIVE: HOW IS THE ASP.NET CORE MIDDLEWARE PIPELINE BUILT? https://www.stevejgordon.co.uk/how-is-the-asp-net-core-middleware-pipeline-built +- [Simple examples of Run, Map, and Use](https://www.vaughanreid.com/2020/05/using-in-line-middleware-in-asp-net-core/) +- [Automatically visualize your endpoints](https://andrewlock.net/visualizing-asp-net-core-endpoints-using-graphvizonline-and-the-dot-language/) +- [Configuring the HTTP pipeline with middleware](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware) +- [DEEP DIVE: HOW IS THE ASP.NET CORE MIDDLEWARE PIPELINE BUILT?](https://www.stevejgordon.co.uk/how-is-the-asp-net-core-middleware-pipeline-built) # Chapter 14 - Building Websites Using the Model-View-Controller Pattern -## Security and privacy -- Built-in features for compliance with modern privacy requirements like GDPR: https://docs.microsoft.com/en-us/aspnet/core/security/gdpr -- ASP.NET Core's support for authenticator apps: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-enable-qrcodes -- Identity UI library: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?tabs=netcore-cli -- Authorization: https://docs.microsoft.com/en-us/aspnet/core/security/authorization/introduction -- Anti-forgery tokens: https://docs.microsoft.com/en-us/aspnet/core/security/anti-request-forgery - ## Setting up and configuring -- dotnet new templates: https://github.com/dotnet/templating/wiki/Available-templates-for-dotnet-new -- Overview of ASP.NET Core MVC: https://docs.microsoft.com/en-us/aspnet/core/mvc/overview -- Default configuration of web hosts: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host -- Dependency injection for ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection -- Configuring middleware: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/ -- Announcing YARP 1.0 Release: https://devblogs.microsoft.com/dotnet/announcing-yarp-1-0-release/ +- [Overview of ASP.NET Core MVC](https://learn.microsoft.com/en-us/aspnet/core/mvc/overview) +- [Default configuration of web hosts](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host) +- [Dependency injection for ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection) +- [Configuring middleware](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/) +- [Announcing YARP 1.0 Release](https://devblogs.microsoft.com/dotnet/announcing-yarp-1-0-release/) ## Controllers -- Handle requests with controllers in ASP.NET Core MVC: https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/actions -- Response caching: https://docs.microsoft.com/en-us/aspnet/core/performance/caching/response -- How cache busting using query strings works: https://stackoverflow.com/questions/9692665/cache-busting-via-params +- [Handle requests with controllers in ASP.NET Core MVC](https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/actions) +- [Response caching](https://learn.microsoft.com/en-us/aspnet/core/performance/caching/response) +- [Microsoft.AspNetCore.OutputCaching Namespace](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.outputcaching) +- [How cache busting using query strings works](https://stackoverflow.com/questions/9692665/cache-busting-via-params) ## Models -- Model Binding in ASP.NET Core: https://docs.microsoft.com/en-us/aspnet/core/mvc/models/model-binding -- Create your own model binders by implementing the IModelBinder interface: https://docs.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding -- Model validation: https://docs.microsoft.com/en-us/aspnet/core/mvc/models/validation -- Tutorial: Get started with EF Core in an ASP.NET MVC web app: https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro +- [Model Binding in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/mvc/models/model-binding) +- [Create your own model binders by implementing the IModelBinder interface](https://learn.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding) +- [Model validation](https://learn.microsoft.com/en-us/aspnet/core/mvc/models/validation) +- [Tutorial: Get started with EF Core in an ASP.NET MVC web app](https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro) ## Views -- HtmlHelper class: https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.viewfeatures.htmlhelper -- Views in ASP.NET Core MVC: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/overview -- Why it is good to put