• Videos
  • Newsletters
  • Resources

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides
Popular Topics
  • Artificial Intelligence
  • Cloud Computing
  • Data Management
  • Software Development
  • Videos
  • Newsletters
  • Resources

Topics

  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
HomeBlogs.NET ProgrammingPage 2

.NET Programming

Filter by
Analysis
BrandPost
Feature
How-To
Interview
News
News Analysis
Opinion
Reviews
Tip
how-to

The best new features in C# 12

From primary constructors and collection expressions to default lambda parameters, C# 12 has many new features that simplify building modern, flexible applications.

By Joydip Kanjilal
Dec 14, 2023 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

Implement authorization for Swagger in ASP.NET Core

Swagger makes it easy to document APIs, and Swashbuckle makes it easy to use Swagger in ASP.NET Core. Here’s how to implement basic authentication and authorization for your Swagger UI.

By Joydip Kanjilal
Nov 30, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement JWT authentication in ASP.NET Core

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

By Joydip Kanjilal
Nov 28, 2023 9 mins
C# Microsoft .NET Web Development
how-to

How to measure API performance in ASP.NET Core

Take advantage of MethodTimer.Fody to measure the execution speed of your APIs and keep your ASP.NET Core applications running smoothly.

By Joydip Kanjilal
Nov 16, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use the specification design pattern in C#

Take advantage of the specification design pattern in C# to improve the modularity, maintainability, and reusability of your source code.

By Joydip Kanjilal
Nov 09, 2023 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use IAsyncEnumerable in C#

Learn how to use IAsyncEnumerable in C# to easily filter, aggregate, transform, project, or otherwise process continuous streams of data asynchronously.

By Joydip Kanjilal
Nov 02, 2023 5 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to create SOAP services in ASP.NET Core

Take advantage of SoapCore to create SOAP services in ASP.NET Core and support data exchange with other systems.

By Joydip Kanjilal
Oct 26, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use structured concurrency in C#

Structured concurrency offers a more organized and more intuitive way of managing the lifetimes of asynchronous tasks. Here’s how to take advantage of it in C#.

By Joydip Kanjilal
Oct 19, 2023 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use TinyIoC in ASP.NET Core

TinyIoC is a lightweight and fast inversion of control container that makes dependency injection simple and easy. Here’s how to take advantage of it in ASP.NET Core applications.

By Joydip Kanjilal
Oct 12, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement in-memory caching in ASP.NET Core

You can take advantage of the decorator design pattern to add in-memory caching to your ASP.NET Core applications. Here’s how.

By Joydip Kanjilal
Oct 05, 2023 9 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

Build an API gateway using YARP in ASP.NET Core

Take advantage of an API gateway to provide a single point of entry to your back-end services and keep your services secure. YARP makes it easy.

By Joydip Kanjilal
Sep 28, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
feature

How to build a microservice in ASP.NET Core

A microservices architecture can help you build applications that are flexible, scalable, and easy to maintain. Here’s how to get started with microservices in ASP.NET Core.

By Joydip Kanjilal
Sep 14, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to improve API security in ASP.NET Core

Take advantage of authentication and authorization, API keys, rate limiting, CORS, API versioning, and other recommended practices to build secure and robust APIs in ASP.NET Core.

By Joydip Kanjilal
Aug 31, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to improve data access performance in EF Core

Take advantage of these 10 strategies to improve data access performance when using Entity Framework Core in your data-driven .NET applications.

By Joydip Kanjilal
Aug 17, 2023 11 mins
C# Microsoft .NET Web Development
how-to

How to use Fluent Assertions in C#

When unit tests fail, they should clearly explain why. Take advantage of the Fluent Assertions library to write unit test methods that are simple, readable, concise, and expressive.

By Joydip Kanjilal
Aug 10, 2023 7 mins
Microsoft .NET Development Libraries and Frameworks Software Development
how-to

6 performance tips for Entity Framework Core 7

Take advantage of these EF Core performance tips to speed up data access in your .NET applications.

By Joydip Kanjilal
Jul 27, 2023 8 mins
Microsoft .NET C# Databases
how-to

How to handle null values in C#

Null pointer exceptions are no fun. You can avoid them and keep your code clean and maintainable by using these techniques to elegantly handle null values in C#.

By Joydip Kanjilal
Jul 20, 2023 5 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use the is and as operators in C#

Take advantage of the is and as operators in C# to perform casting operations elegantly and write code that is well structured, concise, and maintainable.

By Joydip Kanjilal
Jul 13, 2023 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use API keys to secure web APIs in ASP.NET Core

Take advantage of API key authentication to control the access of applications and services to your Web APIs in ASP.NET Core.

By Joydip Kanjilal
Jul 06, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to work with Azure Key Vault in .NET Core

Azure Key Vault is a safe and secure place to store the tokens, keys, passwords, certificates, and other sensitive data used in your .NET Core applications. Here’s how to work with it in C#.

By Joydip Kanjilal
Jun 29, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to avoid spaghetti code in C#

Spaghetti is good eating but bad programming. Follow these 10 best practices to keep your C# code clean, lean, and easy to maintain.

By Joydip Kanjilal
Jun 15, 2023 5 mins
Microsoft .NET Development Libraries and Frameworks Software Development
how-to

Composition vs. inheritance in OOP and C#

Understand the key concepts behind composition and inheritance that allow you to build reusable and flexible types in your .NET applications.

By Joydip Kanjilal
Jun 08, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use advanced Dapper features in ASP.NET Core

Take advantage of stored procedures, query pagination, query caching, and other advanced Dapper feature to simplify data access and ensure high performance.

By Joydip Kanjilal
Jun 01, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use factory-based middleware activation in ASP.NET Core

Factory-based middleware activation is a more flexible and dynamic approach to configuring and activating middleware components. Here’s how to take advantage of it in ASP.NET Core 7.

By Joydip Kanjilal
May 25, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use the rate limiting algorithms in ASP.NET Core

Learn how to use the fixed window, sliding window, token bucket, and concurrency algorithms in ASP.NET Core 7 to protect your applications and APIs against malicious attacks or overuse.

By Joydip Kanjilal
May 18, 2023 8 mins
C# Microsoft .NET Web Development
how-to

How to use response compression in ASP.NET Core

Take advantage of response compression middleware in ASP.NET Core to reduce bandwidth requirements and improve the responsiveness of your apps.

By Joydip Kanjilal
May 11, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use request decompression in ASP.NET Core 7

Take advantage of the request decompression middleware in ASP.NET Core 7 to enable your API endpoints to accept requests that contain compressed content.

By Joydip Kanjilal
Apr 27, 2023 6 mins
C# Microsoft .NET Web Development
how-to

Applying the DRY, KISS, and YAGNI principles in C#

If you don’t repeat yourself, keep it simple, and implement only the functionality you really truly need, your C# code will be cleaner, simpler, and much easier to maintain.

By Joydip Kanjilal
Apr 20, 2023 8 mins
Microsoft .NET C# Software Development
how-to

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.

By Joydip Kanjilal
Apr 06, 2023 8 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Mar 30, 2023 5 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Mar 23, 2023 6 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Mar 02, 2023 7 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Feb 23, 2023 8 mins
C# Microsoft .NET Web Development
how-to

Orchestration and choreography in .NET microservices

Orchestration takes a centralized approach, and choreography a decentralized approach, to coordinating the interactions of microservices. Understand the differences.

By Joydip Kanjilal
Feb 16, 2023 8 mins
Microsoft .NET Software Development
how-to

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.

By Joydip Kanjilal
Feb 09, 2023 8 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Feb 01, 2023 5 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

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.

By Joydip Kanjilal
Jan 24, 2023 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

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.

By Joydip Kanjilal
Jan 19, 2023 5 mins
Microsoft .NET C# Software Development
how-to

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.

By Joydip Kanjilal
Jan 12, 2023 7 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Jan 05, 2023 5 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Dec 22, 2022 7 mins
Microsoft .NET C# Software Development
how-to

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.

By Joydip Kanjilal
Dec 15, 2022 6 mins
C# Microsoft .NET Web Development
how-to

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.

By Joydip Kanjilal
Dec 08, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to use EF Core query types in ASP.NET Core 7

Take advantage of query types in EF Core to query types that don’t have keys and to map to tables and views that lack an identity column.

By Joydip Kanjilal
Dec 01, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to work with logging in EF Core 7

Learn how you can use Entity Framework Core to log data to the console, SQL Server, and other log targets when working with ASP.NET Core 7 applications.

By Joydip Kanjilal
Nov 10, 2022 5 mins
C# Microsoft .NET Web Development
how-to

How to use the in, out, and ref keywords in .NET Core

Take advantage of the in, out, and ref keywords to pass parameters to your C# methods in .NET and make your code more readable and maintainable.

By Joydip Kanjilal
Nov 03, 2022 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use BitArray in .NET 7

Take advantage of the BitArray class in .NET 7 to perform bitwise operations on your data for improved performance.

By Joydip Kanjilal
Oct 27, 2022 8 mins
C# Microsoft .NET Web Development
how-to

Use model validation in minimal APIs in ASP.NET Core 6

Take advantage of FluentValidation to validate your model classes when working with minimal APIs in ASP.NET Core 6.

By Joydip Kanjilal
Oct 13, 2022 6 mins
C# Microsoft .NET Web Development
how-to

How to use cancellation tokens in ASP.NET Core 7

Take advantage of cancellation tokens in ASP.NET Core to allow long running operations to be cancelled gracefully and keep applications responsive.

By Joydip Kanjilal
Oct 05, 2022 7 mins
C# Microsoft .NET Web Development
how-to

How to use route handler filters in minimal APIs in ASP.NET Core 7

Take advantage of minimal API filters in ASP.NET Core 7 to modify request and response objects or short-circuit the request processing pipeline.

By Joydip Kanjilal
Sep 22, 2022 6 mins
C# Microsoft .NET Web Development
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Show me more

analysis

Beyond the usual suspects: 5 fresh data science tools to try today

By Serdar Yegulalp
Jul 12, 20242 mins
PythonProgramming LanguagesSoftware Development
Image
analysis

Generative AI won’t fix cloud migration

By David Linthicum
Jul 12, 20245 mins
Generative AIArtificial IntelligenceCloud Computing
Image
news

HR professionals trust AI recommendations

By Paul Krill
Jul 11, 20243 mins
Technology IndustryCareers
Image
video

How to use dbm to stash data quickly in Python

Jul 04, 20244 mins
Python
Image
video

How to auto-generate Python type hints with Monkeytype

Jun 11, 20245 mins
Python
Image
video

How to make HTML GUIs in Python with NiceGUI

Jun 04, 20245 mins
Python
Image

Sponsored Links

  • Get Cisco UCS X-Series Chassis and Fabric Interconnects offer.
About
  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Reprints
  • Newsletters
  • BrandPosts
Policies
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights
  • Privacy Settings
Our Network
  • CIO
  • Computerworld
  • CSO
  • Network World
  • LinkedIn
  • X
  • Facebook
Copyright © 2024 IDG Communications, Inc.