C#

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

02 crown king queen royalty
futuristic digital tunnel

gears iot

How to create a custom configuration provider in ASP.NET Core 6

ASP.NET Core configuration providers read configuration data from common sources such as JSON files and databases. But you can use other sources by creating custom configuration providers.

A leaping dog catches a flying disc, midair.

How to use EF Core as an in-memory database in ASP.NET Core 6

Entity Framework Core allows you to store and retrieve data to and from an in-memory database. It’s a quick and easy way to test your ASP.NET Core 6 web applications.

network endpoint connections / synapses

How to version minimal APIs in ASP.NET Core 6

Follow these steps to implement API versioning in minimal Web API endpoints using ASP.NET Core 6.

man running across finish line

Microsoft's C# 11 language upgrade nears the finish line

Object initialization and generic math get attention in the latest improvements to the well-known programming language.

Conceptual cybersecurity system locks down a network of interconnected elements.

How to implement JWT authentication in ASP.NET Core 6

It’s easy to secure minimal API endpoints in ASP.NET Core 6 using JSON Web Tokens for authentication and authorization. Just follow these steps.

tools / toolkit

Microsoft launches .NET Community Toolkit

Collection of .NET libraries originally developed for the Windows Community Toolkit can now be used regardless of UI framework.

emerging technology - virtual reality [VR] / augmented reality [AR] headsets in use at a meeting

Build .NET apps for the metaverse with StereoKit

Microsoft’s open source mixed-reality tools make it easy to build OpenXR apps in .NET.

Fighter pilot testing plane    82770200

How to test minimal APIs in ASP.NET Core 6

ASP.NET Core 6 allows us to create APIs that include a bare minimum of files, features, and dependencies. Here’s how to test a minimal Web API.

Number six, painted on a door with a lock with abstract overlay of digital containers.

The best new features in ASP.NET Core 6

Learn the most important new features and enhancements in ASP.NET Core 6, a major upgrade to Microsoft’s framework for building modern web applications.

high priority gauge

How to work with a priority queue in .NET 6

Take advantage of the PriorityQueue class in .NET 6 to create queues that work based on priority values you assign to the elements.

number 6 top six tips neon

How to migrate ASP.NET Core 5 code to ASP.NET Core 6

It’s easy to update your ASP.NET Core 5 code to ASP.NET Core 6. Learn how by following these examples.

one number first

Uno Platform advances WebAssembly support

Multi-platform UI toolkit for .NET enables WebAssembly threads and exceptions ahead of official .NET 7 support.

code abstract matrix

C# language specification approved

The sixth edition of the C# language specification allows for more openness and community participation in changes to the language, Microsoft said.

thumbs up multicultural

The best new features in .NET 6

Microsoft .NET 6 marks a new era of developing performant, modern-day applications for web, cloud, desktop, and mobile devices. Here’s what’s new.

ballerina graceful dancer agile flexible

Microsoft’s complicated dance with open source

The decision to make the C# extension in Visual Studio Code proprietary is raising hackles, but Microsoft is still a consistent supporter of open source.

mechanic overhauling engine

C# extension for Visual Studio Code set for LSP overhaul

Microsoft will switch the C# extension to the Language Server Protocol to enable more advanced tooling, including closed-source capabilities such as IntelliSense.

puzzle missing piece

Use logging and DI in minimal APIs in ASP.NET Core 6

How to implement logging, read from the configuration system, and use dependency injection in minimal APIs in ASP.NET Core 6.

phone on a string cans communication

How to work with String.Create in C#

Take advantage of String.Create to create strings with no allocation overhead and improve the performance of your .NET 6 applications.

Load More