C#

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

A magnifying lens sits on a paper web browser window. [internet / online / search]

How to read request headers in ASP.NET Core 5 MVC

Learn how to read request headers and work with optional data that is passed between the server and client in ASP.NET Core 5 applications.

flames

Get started with Blazor in .NET 5

Take advantage of Blazor, Microsoft’s answer to full-stack development, to build rich web apps with C# and .NET Core.

Plastic, magnetic letters in compartmented boxes.

When to use String vs. StringBuilder in .NET Core

Take advantage of these best practices when working with strings in .NET Core for the optimal performance of your applications.

sort filter seprate strawberries in boxes

How to use SortedDictionary, SortedList, and SortedSet in C#

Take advantage of the SortedDictionary, SortedList, and SortedSet classes in C# to store key-value pairs and sort them based on keys.

parallel architecture

How to use Parallel.For and Parallel.ForEach in C#

Take advantage of lock-free, thread-safe implementations in C# to maximize the throughput of your .NET or .NET Core applications.

open door with sunlight shining through

Microsoft open sources C# standards work

Work on the ECMA standard for C# 6 and later versions will take place in a public working space on GitHub.

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.

Load More