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

parallel architecture
open door with sunlight shining through

Garbage can paper trash

How to avoid GC pressure in C# and .NET

Take advantage of these best practices to avoid memory pressure and improve performance when working in .NET or .NET Core applications.

Microsoft Windows 10X [logo]

Microsoft inches closer to unified Windows SDK

The latest preview bits of Microsoft’s Project Reunion for building Windows 10 desktop applications are ready for testing and even for production.

target bullseyes

How to use target typing and covariant returns in C# 9

Learn two of the most important features in C# 9.0 to make your code more concise, readable, flexible, and efficient.

rock stacking

How to use top-level programs in C# 9

Take advantage of the new top-level statements in C# 9.0 to eliminate boilerplate code and make your programs more readable, maintainable, and efficient.

mismatched shoes

How to use pattern matching in C#

Take advantage of the new relational and logical patterns in C# 9.0 to make your code more readable, maintainable, and efficient.

goal keeper prevention

How to work with read-only collections in C#

Take advantage of read-only generic interfaces such as IReadOnlyList, IReadOnlyDictionary, and IReadOnlyCollection to prevent modifications to collections in your .NET Core applications.

name badges hello

How to work with static anonymous functions in C# 9

Take advantage of static anonymous methods in C# 9 to improve the performance of your .NET applications.

Relaxing on hammock vacation 168344861

How to use LazyCache in ASP.NET Core MVC 5

Take advantage of LazyCache to improve the performance and scalability of your ASP.NET 5 Core applications in heavy load scenarios.

Binary record player grooves

How to work with record types in C# 9

Take advantage of record types in C# 9 to build immutable types and thread-safe objects.

switchboard operators

How to use implicit and explicit operators in C#

Take advantage of implicit and explicit operators to convert between user-defined types and improve the readability of your code.

paper airplane 149083888

How to create PDF documents in ASP.NET Core 5

Take advantage of the DinkToPdf and wkhtmltopdf libraries to generate PDF documents from HTML templates in ASP.NET Core 5.

Tech Spotlight   >   IT Leadership [Network World]   >   IT leader considers an abstract IoT network

.NET nanoFramework taps C# for embedded systems

Follow-up to .NET Micro Framework brings IoT, wearables, and robotics development to .NET developers and Visual Studio.

abstract networks and connections

Dependency injection best practices for ASP.NET Core MVC 5

Learn how to use constructor injection, property injection, method injection, and the service locator pattern in ASP.NET Core MVC 5, along with their caveats.

cyber security shield lock protect

How to use security headers in ASP.NET Core MVC 5

Take advantage of security headers in ASP.NET Core MVC 5 to protect your website against cross-site scripting, code injection, clickjacking, and other attacks.

hyper convergence speed burning rubber tire binary fast by tao55 getty images

Microsoft .NET JSON serializer could get faster startup

Improved throughput and reduced application size are also on the drawing board for the System.Text.Json serializer.

question mark concept decision background

Singleton vs. static classes in C#

Understand the differences between a singleton class and a static class and when to use which in your applications.

One large glowing question mark surrounded by many small question marks.

How to handle unknown actions in ASP.NET Core MVC 5

Handle unknown actions elegantly in ASP.NET 5 by creating routes that dynamically map to the views in your application.

icons working out weight lifting

How to overload action methods in ASP.NET Core MVC 5

Overloading action methods that use identical HTTP verbs is tricky in ASP.NET Core 5, but there are a number of ways to do it. Let’s explore them.

Load More