• Spotlight: AI in Enterprise
  • 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
  • Spotlight: AI in Enterprise
  • 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 3

.NET Programming

Filter by
Analysis
BrandPost
Feature
How-To
Interview
News
News Analysis
Opinion
Reviews
Tip
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
how-to

How to create a custom configuration provider in ASP.NET Core 6

ASP.NET Core configuration providers read configuration data from common sources such as JSON files and databases. But you can use other sources by creating custom configuration providers.

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

How to use EF Core as an in-memory database in ASP.NET Core 6

Entity Framework Core allows you to store and retrieve data to and from an in-memory database. It’s a quick and easy way to test your ASP.NET Core 6 web applications.

By Joydip Kanjilal
Sep 08, 2022 9 mins
C# Microsoft .NET Web Development
feature

The best new features in ASP.NET Core 6

Learn the most important new features and enhancements in Microsoft’s cross-platform framework for building modern web applications.

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

How to work with a priority queue in .NET 6

Take advantage of the PriorityQueue class in .NET 6 to create queues that work based on priority values you assign to the elements.

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

How to migrate ASP.NET Core 5 code to ASP.NET Core 6

It’s easy to update your ASP.NET Core 5 code to ASP.NET Core 6. Learn how by following these examples.

By Joydip Kanjilal
Jul 07, 2022 6 mins
C# Microsoft .NET Web Development
feature

The best new features in .NET 6

Microsoft .NET 6 marks a new era of developing performant, modern-day applications for web, cloud, desktop, and mobile devices.

By Joydip Kanjilal
Jun 30, 2022 8 mins
Microsoft .NET C# Software Development
how-to

How to work with trace listeners in ASP.NET Core 6

Take advantage of trace listeners in ASP.NET Core 6 to add performance and debugging instrumentation to your applications with ease.

By Joydip Kanjilal
Jun 23, 2022 7 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement IP whitelists in ASP.NET Core 6

Take advantage of middleware in ASP.NET Core 6 to check the remote IP address of every request, and allow requests only from known and trusted addresses.

By Joydip Kanjilal
Jun 16, 2022 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

Use logging and DI in minimal APIs in ASP.NET Core 6

How to implement logging, read from the configuration system, and use dependency injection in minimal APIs in ASP.NET Core 6.

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

How to work with String.Create in C#

Take advantage of String.Create to create strings with no allocation overhead and improve the performance of your .NET 6 applications.

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

How to compress and decompress strings in C#

Take advantage of the GZip and Brotli compression methods to reduce the size of string data and improve performance in your .NET Core applications.

By Joydip Kanjilal
May 12, 2022 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with Azure Functions in C#

Take advantage of Azure Functions to run small pieces of code that can be triggered by events in the Azure cloud.

By Joydip Kanjilal
Apr 28, 2022 10 mins
C# Microsoft .NET Microsoft Azure
how-to

How to enforce architecture rules in C#

Take advantage of the NetArchUnit to enforce architecture rules in your application and ensure consistency of quality and standards.

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

How to work with disconnected entities in Entity Framework Core

Learn how you can track changes to entities while disconnected from the EF context in Entity Framework Core.

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

How to work with IAsyncDisposable in .NET 6

Take advantage of the IAsyncDisposable interface to dispose of objects in a non-blocking way and make your .NET applications more efficient.

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

Demystifying the Program and Startup classes in ASP.NET Core

Program and Startup are the main classes for configuring .NET applications. Learn how to use them in ASP.NET Core 6.

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

How to use the minimal hosting model in ASP.NET Core 6

The minimal hosting model in ASP.NET Core 6 means having to write less boilerplate code to get your application up and running.

By Joydip Kanjilal
Dec 16, 2021 5 mins
C# Microsoft .NET Web Development
how-to

How to resolve dependencies in ASP.NET Core

Explore three different ways to resolve dependencies in ASP.NET Core 6, using constructor injection, action method injection, or IServiceProvider instances.

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

How to improve StringBuilder performance in C#

Take advantage of best practices for using StringBuilder to reduce memory allocations and improve the performance of your string operations.

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

How to use IDisposable in ASP.NET Core

Learn the different ways to dispose of objects that implement IDisposable in ASP.NET Core.

By Joydip Kanjilal
Oct 21, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to use Simple Injector in ASP.NET Core MVC

Take advantage of the fast, easy, and lightweight Simple Injector inversion of control library to implement dependency injection in your ASP.NET Core MVC applications.

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

How to prevent CSRF attacks in ASP.NET Core

Take advantage of anti-forgery tokens in ASP.NET Core to protect users of your applications against cross site request forgery exploits.

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

How coupling impacts software quality

Why loose coupling between components makes your .NET application more flexible, manageable, scalable, and testable.

By Joydip Kanjilal
Sep 16, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to use string interpolation in C# 9

Take advantage of string interpolation to incorporate variable substitution in formatted strings in C#.

By Joydip Kanjilal
Aug 19, 2021 4 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to build lightweight services in ASP.NET Core 6

Take advantage of the extension methods of the IEndpointConventionBuilder interface to implement lightweight services sans template or controller in ASP.NET Core 6.

By Joydip Kanjilal
Aug 11, 2021 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with Azure Queue Storage in C#

Take advantage of Azure Storage queues to store large numbers of messages for asynchronous or even distributed processing.

By Joydip Kanjilal
Aug 05, 2021 7 mins
C# Microsoft .NET Microsoft Azure
how-to

How to use correlation IDs in ASP.NET Core MVC

Capture and pass correlation IDs in ASP.NET Core MVC 5 to track HTTP requests that flow through multiple back-end services.

By Joydip Kanjilal
Jul 28, 2021 6 mins
Microsoft .NET Software Development
how-to

How to use HTTP logging in ASP.NET Core 6

Take advantage of the HTTP logging middleware in ASP.NET Core to log request and response information with flexibility and ease.

By Joydip Kanjilal
Jul 20, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to use advanced Serilog features in ASP.NET Core MVC

Take advantage of filters and request logging middleware in Serilog to reduce log verbosity and generate useful log summaries in your ASP.NET Core MVC applications.

By Joydip Kanjilal
Jul 13, 2021 8 mins
C# Microsoft .NET Web Development
how-to

How to use filters in ASP.NET Core MVC

Take advantage of filters to execute custom code at specific points in the request processing pipeline and avoid code duplication across actions.

By Joydip Kanjilal
Jun 30, 2021 6 mins
Microsoft .NET C# Software Development
how-to

How to avoid redundant DI code in ASP.NET Core

Take advantage of base controllers to avoid dependency injection code duplication and enforce the DRY principle in ASP.NET Core MVC.

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

How to use Razor View Engine in ASP.NET Core MVC

Take advantage of the friendly syntax of Razor View Engine to more easily create views from templates in ASP.NET Core MVC.

By Joydip Kanjilal
Jun 16, 2021 7 mins
Microsoft .NET C# Software Development
how-to

How to validate method parameters using PostSharp in C#

Take advantage of aspect-oriented programming using PostSharp to validate method parameters in C#.

By Joydip Kanjilal
Jun 09, 2021 5 mins
Microsoft .NET C# APIs
how-to

How to use closures in C#

Take advantage of closures in C# — including anonymous methods, delegates, and lambda expressions — to make your code robust, efficient, readable, and easier to maintain.

By Joydip Kanjilal
Jun 01, 2021 5 mins
Microsoft .NET C# Software Development
how-to

How to build AWS Lambda functions in .NET Core

Learn how to use .NET Core and the AWS Toolkit for Visual Studio to build serverless functions and deploy them to AWS Lambda in the Amazon cloud.

By Joydip Kanjilal
May 18, 2021 7 mins
C# Microsoft .NET Serverless Computing
how-to

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.

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

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.

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

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.

By Joydip Kanjilal
Apr 27, 2021 7 mins
Microsoft .NET C# Software Development
how-to

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.

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

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.

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

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.

By Joydip Kanjilal
Apr 06, 2021 9 mins
Microsoft .NET C# Software Development
how-to

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.

By Joydip Kanjilal
Mar 30, 2021 6 mins
Microsoft .NET C# Software Development
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Show me more

opinion

The dirty little secret of open source contributions

By Matt Asay
Nov 18, 20244 mins
Technology IndustryOpen Source
Image
feature

14 great preprocessors for developers who love to code

By Peter Wayner
Nov 18, 202410 mins
Development ToolsSoftware Development
Image
feature

Designing the APIs that accidentally power businesses

By Jean Yang
Nov 18, 20246 mins
APIsSoftware Development
Image
video

Building Python wheels to distribute your programs

Nov 15, 20246 mins
PythonSoftware Development
Image
video

Creating a pip install-able Python package

Nov 14, 20243 mins
PythonSoftware Development
Image
video

How to get better web requests in Python with httpx

Oct 07, 20244 mins
Python
Image
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.