What’s New in C# 8.0

After 18 years of existence, C# is still as young and “sharp" as ever. Indeed, by open-sourcing its compiler and design, Microsoft strengthened the position of C# in the market by making it available to all developpers on GitHub.
Contributing and voting to set the language roadmap are the main contributors to its success in the last few years.

Link: https://dzone.com/articles/c-80-is-here?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

How to Use a Start/Stop Loader on Every AJAX Call

Introduction
In this article, we’ll learn how to put an AJAX loader for all AJAX calls from all pages which extend from your layout page into our MVC structure. Here, we will create a simple MVC project and call AJAX functions from view. For beginners who are new to AJAX, AJAX is Asynchronous JavaScript and XML, it’s a front-end web technology that calls web-servers asynchronously. It will load your content without loading or leaving your current page.
Recommended Prerequisites

Visual Studio 
ASP.NET MVC

Step 1
Open Visual Studio and select “File” >> “New". Then, click on Project.

Link: https://dzone.com/articles/how-to-startstop-loader-on-every-ajax-call?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Customizing ASP.NET Core Part 11: WebHostBuilder

In my post about Configuring HTTPS in ASP.NET Core 2.1, a reader asked how to configure the HTTPS settings using user secrets.

“How would I go about using user secrets to pass the password to listenOptions.UseHttps(…)? I can’t fetch the configuration from within Program.cs no matter what I try. I’ve been Googling solutions for like a half hour so any help would be greatly appreciated."https://github.com/JuergenGutsch/blog/issues/110#issuecomment-441177441

Link: https://dzone.com/articles/customizing-aspnet-core-part-11-webhostbuilder?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Implementing PhantomReference in C# [Snippet]

I ran into this very interesting blog post and I decided to see if I could implement this on my own, without requiring any runtime support. This turned out the be surprisingly easy if you are willing to accept some caveats.
I’m going to assume that you have read the linked blog post, and here is the code that implements it:

Link: https://dzone.com/articles/implementing-phanthomreference-in-c-sharp?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Short Walks: 406 Error While Creating a .NET Core API

I’m afraid this is another of those: “What has AddMvc() ever done for us" posts. Today, I was creating a brand new .NET Core 2.1 API and, instead of calling AddMvc in ConfigureServices, I instead used AddMvcCore:
public void ConfigureServices(IServiceCollection services)
{
services.AddMvcCore();
When I tried to access the API, I got a 406 error. The fix is very simple (and one that using AddMvc()  does for you:

Link: https://dzone.com/articles/short-walks-406-error-while-creating-a-net-core-ap?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

10 More C# Extension Methods for the Holiday Season

Ahhh, it’s that time of year again when we stuff the C# stocking with some Extension Methods!
Notice: This post was written for the Second Annual C# Advent Calendar (#csadvent). For the entire month of December, you can receive more than 60 articles geared towards C# for the very low price of $0.00!</commercial-voice> Thanks a lot to Matt Groves (@mgroves) for putting this together again! Awesome job, Matt!

Link: https://dzone.com/articles/10-more-c-extension-methods-for-the-holiday-season?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

What Is Blazor? Your Guide to Getting Started

For years now, if you wanted to write code to run in a browser, your choices were JavaScript or JavaScript. For a couple of brief periods on certain browsers, there were other languages you could use, but they weren’t significant: VBScript on IE and Dart on a special build of Chrome.
There are also languages that compile down to JavaScript (TypeScript, CoffeeScript, …), but they were still really JavaScript under the covers. The JavaScript monoculture’s days are numbered with the advent of WebAssembly (Wasm). For .NET developers, Wasm is arriving in the form of Blazor.

Link: https://dzone.com/articles/what-is-blazor-your-guide-to-getting-started?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

ASP.NET Core with Entity Framework Core: Returning Multiple Result Sets

One of the things I like most about Entity Framework is the various ways you can retrieve data to hydrate your entities.
You can retrieve data using LINQ (command or fluent with methods), ExecuteQuery (and all of it’s various flavors), or even ADO.NET with straight SQL.

Link: https://dzone.com/articles/aspnet-core-with-entity-framework-core-returning-m?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Customizing ASP.NET Core Part 9: ActionFilter

This post is a little late this time. My initial plan was to throw out two posts of this series per week, but this didn’t work out since there are sometimes some more family and work tasks to do than expected.
Anyway, we keep on customizing on the controller level in this, the ninth, post of this blog series. I’ll have a look into ActionFilters and how to create your own ActionFilter to keep your Actions small and readable.

Link: https://dzone.com/articles/customizing-aspnet-core-part-09-actionfilter