C#

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

astract code [Thinkstock]

Microsoft unveils C# 12 language enhancements

Three new features for C# 12 are available in the latest .NET 8 and Visual Studio 17.6 previews.

group of hands holding together multi colored gears

How to use the unit of work pattern in ASP.NET Core

Take advantage of the unit of work design pattern to build flexible, extensible, and reusable data access layers in your ASP.NET Core applications.

wait sign

Get started with the rate limiting middleware in ASP.NET Core 7

Take advantage of the new rate limiting middleware in ASP.NET Core 7 to protect against malicious attacks on your applications and ensure equitable use of server resources.

birds in flight leader lead team syncronized

How to work with EF Core migrations in ASP.NET Core

Take advantage of migrations in EF Core to manage database schema changes over time and keep them in sync with the data models of your ASP.NET Core applications.

error neon mistake

How to handle errors in minimal APIs in ASP.NET Core

How to use the exception handling middleware in ASP.NET Core to handle errors gracefully in your minimal API applications.

email image blue

How to send emails using SendGrid in ASP.NET Core

Take advantage of SendGrid to integrate reliable and scalable email into your ASP.NET Core applications. Here’s how.

two hands holding puzzle pieces

How to use parameter binding in minimal APIs in ASP.NET Core

Take advantage of parameter binding in ASP.NET Core 7 to convert request data to strongly typed parameters, improving both application performance and code maintainability.

Outdated, obsolete computer systems in need of updating display binary code.

Cobol in .NET with Otterkit

Old languages never die, they just get ported to a new runtime. Here’s a look at a new open source project for .NET that can help modernize Cobol.

shutterstock 2168992649

The best new features in ASP.NET Core 7

The latest version of Microsoft’s web application development framework brings excellent new capabilities to middleware, minimal API apps, and more. Here are the highlights.

help support advice guidance signpost

Microsoft pledges support in .NET language updates

The company has just updated its strategy for C#, F#, and Visual Basic, committing to performance and stability for all three languages.

happy confetti celebrate victory proud winner ambreen hasan 346960 unsplash

C++ still shining in language popularity index

The language grew nearly 6% year over year in Tiobe's index and ranks fifth on PYPL's popularity index.

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.

shutterstock 111592973 runners passing baton relay race

How to work with Action, Func, and Predicate delegates in C#

Learn how you can take advantage of delegates like Action, Func, and Predicate to facilitate callbacks and add flexibility to your code.

code abstract matrix

How to work with delegates in C#

Take advantage of delegates to promote flexibility and code reuse in your .NET applications and to implement event-driven programming with ease.

shutterstock 1850095465 internet API application programming interface

How to use OpenAPI in ASP.NET Core

Take advantage of the built-in support for OpenAPI in ASP.NET Core to automatically document your HTTP endpoints. Minimal APIs are supported too.

question marks

How to use the null object pattern in .NET

Take advantage of the null object pattern in .NET to eliminate the need for null checks and avoid runtime errors in your applications.

system lock console background

How to use symmetric and asymmetric encryption in C#

Learn how to protect the information handled by your .NET applications by encrypting and decrypting the data using either a single key or a public/private key pair.

shortcut through a maze

Introducing Cadl: Microsoft’s concise API design language

With Cadl, you can write a 500-line OpenAPI definition in 50 lines of code. It’s a logical way for architects and developers to construct and constrain APIs.

DevOps DevSecOps Security Pipeline

How to work with endpoint filters in ASP.NET Core 7

Take advantage of endpoint filters in ASP.NET Core 7 to modify request and response objects, short-circuit the request processing pipeline, or handle cross-cutting concerns for every request.

streams of light on the highway 1200

How to use BufferedStream and MemoryStream in C#

Take advantage of the stream classes in .NET 7 for faster reads and writes of the data in your .NET applications.

Load More