C#

C# | News, how-tos, features, reviews, and videos

artsy still life of bowling pins with green bowling ball
Spotlights on stage

square peg in a round hole / wooden block shapes toy

How to use API versioning in ASP.NET Core

Take advantage of API versioning in ASP.NET Core to manage the impact of changes to your APIs on your clients

Network encryption / encrypted data transfers

How to use Data Transfer Objects in ASP.NET Core 3.1

Learn the benefits of Data Transfer Objects, why they should be immutable, and how to take advantage of them in your ASP.NET Core applications

question marks / questions

How to use const, readonly, and static in C#

Understand the similarities and differences between the const, readonly, and static keywords in C#

error 404 web browser

How to handle 404 errors in ASP.NET Core MVC

Take advantage of ASP.NET Core middleware to handle 404 errors more gracefully in ASP.NET Core MVC

action

How to use dependency injection in action filters in ASP.NET Core 3.1

Take advantage of dependency injection to make your action methods in ASP.NET Core lean, clean, and maintainable

Hopscotch numbers

Microsoft reveals C# 9.0 plans

The next version of Microsoft’s Java rival will offer new capabilities ranging from records to value-based equality

Using a laptop in an environment of binary code.

How to use data annotations in C#

Take advantage of data annotations to decorate your models using attribute tags so that your application’s data definition can be managed in a single place

doors choices decisions

How to use the options pattern in ASP.NET Core

Take advantage of the options pattern to load configuration data directly into your classes at runtime for simple and flexible configuration data management

gears 142263619

C# Source Generators to boost performance in .NET 5

A new C# compiler feature that inspects code and generates additional source files promises to improve performance in a number of scenarios

unique goldfish 140462297

How to work with GUIDs in C# 8

Take advantage of GUIDs to create universally unique identifiers and avoid data collisions in your applications

gears orange large efficient automated machine learning automation

Using C# to automate web application testing in Edge with WebDriver

Microsoft adds support for its Chromium-based browser to the open source Selenium test framework

abstract data

How to export data to Excel in ASP.NET Core 3.0

Learn how to use the ClosedXML NuGet package to export data as a CSV or XLSX file for Excel from an ASP.NET Core application

anonymous masks

How to use anonymous types in C#

Take advantage of anonymous types in C# to create and instantiate types that have read-only properties without having to declare the type beforehand

Binary stream passing over rows of monitors, each also displaying binary streams.

How to use LoggerMessage in ASP.NET Core 3.0

Take advantage of high-performance logging by using LoggerMessage instead of Logger extension methods in ASP.NET Core

email image blue

How to send emails in ASP.NET Core

Take advantage of the open source MailKit library to send emails in ASP.NET Core easily

scissors cut trim chop

How to use indices and ranges in C# 8.0

Take advantage of indices and ranges in C# 8.0 to access elements or slices of a collection with simplicity and ease

work tools carpentry

Visual Studio upgrade boosts debugging, mobile development

New features in Visual Studio 2019 version 16.5 include hot reload for Xamarin.Forms and debugging enhancements for C++ and multithreaded apps

work tools carpentry

Visual Studio upgrade boosts debugging, mobile development

New features in Visual Studio 2019 version 16.5 include hot reload for Xamarin.Forms and debugging enhancements for C++ and multithreaded apps

Load More