C#
C# | News, how-tos, features, reviews, and videos
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.